Commit ba14fa06 authored by Volker Krause's avatar Volker Krause
Browse files

Adapt to Qt6's QList::contains being a template method

parent 9d956517
Pipeline #151889 passed with stage
in 8 minutes and 54 seconds
......@@ -109,7 +109,11 @@ void Menu::stop(const QList<uint> &ids)
// TODO is there a nicer algorithm for that?
// TODO remove all m_menus also?
m_subscriptions.erase(
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
std::remove_if(m_subscriptions.begin(), m_subscriptions.end(), std::bind(&QList<uint>::contains, m_subscriptions, std::placeholders::_1)),
#else
std::remove_if(m_subscriptions.begin(), m_subscriptions.end(), std::bind(&QList<uint>::contains<uint>, m_subscriptions, std::placeholders::_1)),
#endif
m_subscriptions.end());
if (m_subscriptions.isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment