use emplace

Allows removing the constructor name as emplace forwards the arguments
directly.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-08-04 20:50:41 -07:00
committed by Tomas Babej
parent bf93c28919
commit 5c137f5c8f
9 changed files with 24 additions and 24 deletions

View File

@@ -790,7 +790,7 @@ void Task::parseJSON (const json::object* root_obj)
name << "annotation_" << ann_timestamp;
}
annos.insert (std::make_pair (name.str (), json::decode (what->_data)));
annos.emplace (name.str (), json::decode (what->_data));
}
setAnnotations (annos);