From 05ba076a0ec451a5a67410731f5ea23ec1faaa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Sun, 22 Sep 2019 15:38:27 +0200 Subject: Use return {...} instead of make_tuple --- src/database/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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> 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(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, -- cgit v1.2.3