mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Use map::emplace instead of inserting std::pair (C++11)
This commit is contained in:
@@ -26,7 +26,7 @@ namespace
|
||||
iterate(key, toDelete)
|
||||
_records.erase(*key);
|
||||
|
||||
return _records.insert(std::make_pair(_next_key++, (record_t){ processId, std::string(), false, nil, false })).first->first;
|
||||
return _records.emplace(_next_key++, (record_t){ processId, std::string(), false, nil, false }).first->first;
|
||||
}
|
||||
|
||||
void output (int key, char const* data, size_t len)
|
||||
|
||||
Reference in New Issue
Block a user