modernize C++: use transparent functors

This commit is contained in:
wmayer
2023-08-07 13:31:19 +02:00
committed by wwmayer
parent 31ed14db83
commit b6f331f4fa
7 changed files with 13 additions and 11 deletions

View File

@@ -344,7 +344,7 @@ std::vector<std::pair<QByteArray, QAction*>> ShortcutManager::getActionsByShortc
{
const auto &index = actionMap.get<1>();
std::vector<std::pair<QByteArray, QAction*>> res;
std::multimap<int, const ActionData*, std::greater<int>> map;
std::multimap<int, const ActionData*, std::greater<>> map;
for (auto it = index.lower_bound(ActionKey(shortcut)); it != index.end(); ++it) {
if (it->key.shortcut != shortcut)
break;