Use return {...} instead of make_tuple
This commit is contained in:
1 parent
06abd6e69a
commit
05ba076a0e
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user