X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbasichandler.cpp;h=6ad7828982ae317a5e6442ca325a669c8f29f751;hb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad;hp=c53468f069f56539f797fbc8405f8610307a2e4e;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c;p=quassel.git diff --git a/src/common/basichandler.cpp b/src/common/basichandler.cpp index c53468f0..6ad78289 100644 --- a/src/common/basichandler.cpp +++ b/src/common/basichandler.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,10 +20,9 @@ #include "basichandler.h" +#include #include -#include "logger.h" - BasicHandler::BasicHandler(QObject *parent) : QObject(parent), _defaultHandler(-1), @@ -52,11 +51,7 @@ const QHash &BasicHandler::handlerHash() { if (!_initDone) { for (int i = metaObject()->methodOffset(); i < metaObject()->methodCount(); i++) { -#if QT_VERSION >= 0x050000 QString methodSignature = metaObject()->method(i).methodSignature(); -#else - QString methodSignature = metaObject()->method(i).signature(); -#endif if (methodSignature.startsWith("defaultHandler")) { _defaultHandler = i; continue;