Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/utility/comparators.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,11 @@ class LocaleBasedSorting
return m_cmp(a.getName(), b.getName()) < 0;
}

template <typename A, typename B>
bool operator()(const std::pair<A, B> &a, const std::pair<A, B> &b) const {
bool operator()(const std::pair<std::string, std::string> &a, const std::pair<std::string, std::string> &b) const {
return m_cmp(a.first, b.first) < 0;
}

template <typename ItemT, typename FunT>
bool operator()(const RunnableItem<ItemT, FunT> &a, const RunnableItem<ItemT, FunT> &b) const {
bool operator()(const RunnableItem<std::string, void()> &a, const RunnableItem<std::string, void()> &b) const {
return m_cmp(a.item(), b.item()) < 0;
}
};
Expand Down