remove std::make_pair

make_pair is an old C++98 function that can be replaced by modern
shorter constructs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-09-07 20:58:23 -07:00
parent 15f419e1cb
commit 6ec5089cc9
10 changed files with 15 additions and 18 deletions

View File

@@ -163,7 +163,7 @@ StickerDatabase::ListValues(std::map<std::string, std::string> &table,
ExecuteForEach(s, [s, &table](){
const char *name = (const char *)sqlite3_column_text(s, 0);
const char *value = (const char *)sqlite3_column_text(s, 1);
table.insert(std::make_pair(name, value));
table.emplace(name, value);
});
}