X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.cpp;h=0cc79944ce35641060b36f12bcbaa616c0b8e374;hp=f0711f16dfda7585be4192bc4651c8d35839e335;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24 diff --git a/src/common/signalproxy.cpp b/src/common/signalproxy.cpp index f0711f16..0cc79944 100644 --- a/src/common/signalproxy.cpp +++ b/src/common/signalproxy.cpp @@ -18,6 +18,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include + #include #include #include @@ -66,11 +68,11 @@ public: private: struct Signal { - QObject *sender; - int signalId; + QObject *sender{nullptr}; + int signalId{-1}; QByteArray signature; - Signal(QObject *sender, int sigId, const QByteArray &signature) : sender(sender), signalId(sigId), signature(signature) {} - Signal() : sender(nullptr), signalId(-1) {} + Signal(QObject *sender, int sigId, QByteArray signature) : sender(sender), signalId(sigId), signature(std::move(signature)) {} + Signal() {} }; SignalProxy *_proxy;