X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Firclisthelper.h;h=aee7cf12302fc06f603da75ea396e8081984598b;hp=037daf755c3a4032dc0c3295aefafc4c90a30cba;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hpb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad diff --git a/src/common/irclisthelper.h b/src/common/irclisthelper.h index 037daf75..aee7cf12 100644 --- a/src/common/irclisthelper.h +++ b/src/common/irclisthelper.h @@ -20,6 +20,10 @@ #pragma once +#include + +#include "common-export.h" + #include "syncableobject.h" #include "types.h" @@ -31,19 +35,19 @@ * when RPL_LISTEND is received the clients will be informed, that they can pull the data * 3.) client pulls the data by calling requestChannelList again. receiving the data in receiveChannelList */ -class IrcListHelper : public SyncableObject +class COMMON_EXPORT IrcListHelper : public SyncableObject { Q_OBJECT SYNCABLE_OBJECT public: - inline IrcListHelper(QObject *parent = 0) : SyncableObject(parent) { setInitialized(); }; + inline IrcListHelper(QObject *parent = nullptr) : SyncableObject(parent) { setInitialized(); }; struct ChannelDescription { QString channelName; quint32 userCount; QString topic; - ChannelDescription(const QString &channelName_, quint32 userCount_, const QString &topic_) : channelName(channelName_), userCount(userCount_), topic(topic_) {}; + ChannelDescription(QString channelName_, quint32 userCount_, QString topic_) : channelName(std::move(channelName_)), userCount(userCount_), topic(std::move(topic_)) {}; }; public slots: