mirror of
https://github.com/anope/anope.git
synced 2026-07-06 13:33:13 +02:00
Use emplace() instead of insert(std::make_pair()).
This commit is contained in:
+1
-1
@@ -831,7 +831,7 @@ void Conf::LoadConf(File &file)
|
||||
}
|
||||
|
||||
Block *b = block_stack.empty() ? this : block_stack.top();
|
||||
block_map::iterator it = b->blocks.insert(std::make_pair(wordbuffer, Configuration::Block(wordbuffer)));
|
||||
block_map::iterator it = b->blocks.emplace(wordbuffer, Configuration::Block(wordbuffer));
|
||||
b = &it->second;
|
||||
b->linenum = linenumber;
|
||||
block_stack.push(b);
|
||||
|
||||
Reference in New Issue
Block a user