X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Factioncollection.h;h=fa1ef24cef0f22528df70883dc7a5f167dc46157;hp=d26c3577c3ba96d6fa2a55aa33e778159d9c7f26;hb=e2188dc438be6f3eb0d9cdf47d28821aefe9835e;hpb=c194ed5fb3d15e14b9364f9796d3521910dc72fe diff --git a/src/uisupport/actioncollection.h b/src/uisupport/actioncollection.h index d26c3577..fa1ef24c 100644 --- a/src/uisupport/actioncollection.h +++ b/src/uisupport/actioncollection.h @@ -82,7 +82,7 @@ public: template ActionType *add(const QString &name, const QObject *receiver = nullptr, const char *member = nullptr) { - ActionType *a = new ActionType(this); + auto *a = new ActionType(this); if (receiver && member) connect(a, SIGNAL(triggered(bool)), receiver, member); addAction(name, a);