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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user