File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
CondFormats/L1TObjects/interface Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ class L1TriggerKey {
4040
4141 /* Adds new record and type mapping to payload. If such exists, nothing happens */
4242 void add (const std::string& record, const std::string& type, const std::string& key) {
43- m_recordToKey.insert ( std::make_pair ( record + " @" + type, key.empty () ? kNullKey : key) );
43+ m_recordToKey.emplace ( record + " @" + type, key.empty () ? kNullKey : key);
4444 }
4545
4646 void add (const RecordToKey& map) {
4747 for (RecordToKey::const_iterator itr = map.begin (); itr != map.end (); ++itr) {
48- m_recordToKey.insert ( std::make_pair ( itr->first , itr->second .empty () ? kNullKey : itr->second ) );
48+ m_recordToKey.emplace ( itr->first , itr->second .empty () ? kNullKey : itr->second );
4949 }
5050 }
5151
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ class L1TriggerKeyExt {
4040
4141 /* Adds new record and type mapping to payload. If such exists, nothing happens */
4242 void add (const std::string& record, const std::string& type, const std::string& key) {
43- m_recordToKey.insert ( std::make_pair ( record + " @" + type, key.empty () ? kNullKey : key) );
43+ m_recordToKey.emplace ( record + " @" + type, key.empty () ? kNullKey : key);
4444 }
4545
4646 void add (const RecordToKey& map) {
4747 for (RecordToKey::const_iterator itr = map.begin (); itr != map.end (); ++itr) {
48- m_recordToKey.insert ( std::make_pair ( itr->first , itr->second .empty () ? kNullKey : itr->second ) );
48+ m_recordToKey.emplace ( itr->first , itr->second .empty () ? kNullKey : itr->second );
4949 }
5050 }
5151
You can’t perform that action at this time.
0 commit comments