cmake: avoid de-duplication of user's CXXFLAGS
[quassel.git] / src / uisupport / widgethelpers.h
index 9ca6189..b5e81b2 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2022 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -66,7 +66,7 @@ bool tryConnectChangedSignal(const QObject* widget, const Receiver* receiver, Sl
     // If *alreadyConnected is true, just returns false to prevent multiple connections.
     static const auto tryConnect = [](const QObject* object, auto sig, auto receiver, auto slot, bool* alreadyConnected) {
         if (!*alreadyConnected) {
-            auto widget = qobject_cast<const typename MemberFunction<decltype(sig)>::ClassType*>(object);
+            auto widget = qobject_cast<const typename FunctionTraits<decltype(sig)>::ClassType*>(object);
             if (widget) {
                 *alreadyConnected = QObject::connect(widget, sig, receiver, slot);
                 return *alreadyConnected;