clang-tidy: Run modernize-use-emplace everywhere (#6451)

... to avoid constructing and copying temp objects
This commit is contained in:
Levin Oehlmann
2022-06-26 08:54:59 +02:00
committed by GitHub
parent 28ec71f91a
commit c075ba93fb
4 changed files with 7 additions and 7 deletions

View File

@@ -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());