X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferinfo.h;h=e20ce9b3eeb9268f25d3b41953c648fcb4fe1e01;hp=d429cae77751923786e158e63c638d0e7bfab00e;hb=158443f71d48215eea8b47b836b61afd77654b78;hpb=921e54680da16fcf2adb7a90506875aceb6633a4 diff --git a/src/common/bufferinfo.h b/src/common/bufferinfo.h index d429cae7..e20ce9b3 100644 --- a/src/common/bufferinfo.h +++ b/src/common/bufferinfo.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -18,15 +18,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERINFO_H -#define BUFFERINFO_H +#pragma once + +#include "common-export.h" #include "types.h" class QString; class QDataStream; -class BufferInfo +class COMMON_EXPORT BufferInfo { public: enum Type { @@ -66,8 +67,8 @@ public: private: BufferId _bufferId; NetworkId _netid; - Type _type; - uint _groupId; + Type _type{InvalidBuffer}; + uint _groupId{0}; QString _bufferName; friend uint qHash(const BufferInfo &); @@ -84,5 +85,3 @@ Q_DECLARE_METATYPE(BufferInfo) Q_DECLARE_OPERATORS_FOR_FLAGS(BufferInfo::ActivityLevel) uint qHash(const BufferInfo &); - -#endif