Mercurial > hg > svgui
diff widgets/SubdividingMenu.cpp @ 1374:631897ba9fca zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 08:59:03 +0000 |
parents | 53fe33b00770 |
children |
line wrap: on
line diff
--- a/widgets/SubdividingMenu.cpp Fri Oct 05 10:25:52 2018 +0100 +++ b/widgets/SubdividingMenu.cpp Tue Nov 06 08:59:03 2018 +0000 @@ -85,7 +85,7 @@ return QString::localeAwareCompare(s1, s2) < 0; }; - set<QString, typeof(comparator)> sortedEntries(comparator); + set<QString, decltype(comparator)> sortedEntries(comparator); sortedEntries.insert(entries.begin(), entries.end()); for (auto j = sortedEntries.begin(); j != sortedEntries.end(); ++j) { @@ -180,7 +180,7 @@ auto comparator = [](QString s1, QString s2) -> bool { return QString::localeAwareCompare(s1, s2) < 0; }; - set<QString, typeof(comparator)> sortedEntries(comparator); + set<QString, decltype(comparator)> sortedEntries(comparator); for (auto i: m_pendingEntries) { sortedEntries.insert(i.first); }