clang-tidy: Run modernize-use-emplace everywhere (#6451)
... to avoid constructing and copying temp objects
This commit is contained in:
@@ -157,7 +157,7 @@ bool MidiExport::tryExport(const TrackContainer::TrackList &tracks,
|
||||
QDomElement it = n.toElement();
|
||||
int pos = it.attribute("pos", "0").toInt();
|
||||
int len = it.attribute("len", "0").toInt();
|
||||
plist.push_back(std::pair<int,int>(pos, pos+len));
|
||||
plist.emplace_back(pos, pos+len);
|
||||
}
|
||||
}
|
||||
std::sort(plist.begin(), plist.end());
|
||||
|
||||
Reference in New Issue
Block a user