X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Factioncollection.h;h=fa1ef24cef0f22528df70883dc7a5f167dc46157;hb=f9cd845a9119e0abf450a91d8802f5c1822dd638;hp=10f7d933378d81f5e70755dcd99b4fe228af66a7;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;p=quassel.git diff --git a/src/uisupport/actioncollection.h b/src/uisupport/actioncollection.h index 10f7d933..fa1ef24c 100644 --- a/src/uisupport/actioncollection.h +++ b/src/uisupport/actioncollection.h @@ -43,7 +43,6 @@ class UISUPPORT_EXPORT ActionCollection : public QObject public: explicit ActionCollection(QObject *parent); - ~ActionCollection() override; /// Clears the entire action collection, deleting all actions. void clear(); @@ -83,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);