summaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-09-22 15:38:27 +0200
committerlouiz’ <louiz@louiz.org>2019-09-27 20:57:30 +0200
commit05ba076a0ec451a5a67410731f5ea23ec1faaa74 (patch)
tree8ab9eb67484f937244b3e1f229a8970dcae90222 /src/database
parent06abd6e69ac79412fe37f51fb0bf977f0ddd3eb1 (diff)
downloadbiboumi-05ba076a0ec451a5a67410731f5ea23ec1faaa74.tar.gz
biboumi-05ba076a0ec451a5a67410731f5ea23ec1faaa74.tar.bz2
biboumi-05ba076a0ec451a5a67410731f5ea23ec1faaa74.tar.xz
biboumi-05ba076a0ec451a5a67410731f5ea23ec1faaa74.zip
Use return {...} instead of make_tuple
Diffstat (limited to 'src/database')
-rw-r--r--src/database/database.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp
index 9037ce1..861abcb 100644
--- a/src/database/database.cpp
+++ b/src/database/database.cpp
@@ -238,9 +238,9 @@ std::tuple<bool, std::vector<Database::MucLogLine>> Database::get_muc_logs(const
}
if (paging == Database::Paging::first)
- return std::make_tuple(complete, result);
+ return {complete, result};
else
- return std::make_tuple(complete, std::vector<Database::MucLogLine>(result.crbegin(), result.crend()));
+ return {complete, {result.crbegin(), result.crend()}};
}
Database::MucLogLine Database::get_muc_log(const std::string& owner, const std::string& chan_name, const std::string& server,