Use emplace_* functions where in-place construction is preferable

This commit is contained in:
Lioncash
2015-02-04 10:36:42 -05:00
parent 012a4c18ff
commit e07679114b
12 changed files with 18 additions and 18 deletions

View File

@ -33,7 +33,7 @@ void LabelMap::RegisterLabel(const std::string &label, u16 lval, LabelType type)
label.c_str(), lval, old_value);
DeleteLabel(label);
}
labels.push_back(label_t(label, lval, type));
labels.emplace_back(label, lval, type);
}
void LabelMap::DeleteLabel(const std::string &label)