projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use '= default' instead of empty ctor/dtor bodies
[quassel.git]
/
src
/
common
/
peer.h
diff --git
a/src/common/peer.h
b/src/common/peer.h
index
becf049
..
803f15b
100644
(file)
--- a/
src/common/peer.h
+++ b/
src/common/peer.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
6
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-20,6
+20,8
@@
#pragma once
#pragma once
+#include "common-export.h"
+
#include <QAbstractSocket>
#include <QDataStream>
#include <QPointer>
#include <QAbstractSocket>
#include <QDataStream>
#include <QPointer>
@@
-29,12
+31,12
@@
#include "quassel.h"
#include "signalproxy.h"
#include "quassel.h"
#include "signalproxy.h"
-class Peer : public QObject
+class
COMMON_EXPORT
Peer : public QObject
{
Q_OBJECT
public:
{
Q_OBJECT
public:
- explicit Peer(AuthHandler *authHandler, QObject *parent =
0
);
+ explicit Peer(AuthHandler *authHandler, QObject *parent =
nullptr
);
virtual Protocol::Type protocol() const = 0;
virtual QString description() const = 0;
virtual Protocol::Type protocol() const = 0;
virtual QString description() const = 0;
@@
-112,7
+114,7
@@
private:
};
// We need to special-case Peer* in attached signals/slots, so typedef it for the meta type system
};
// We need to special-case Peer* in attached signals/slots, so typedef it for the meta type system
-
typedef Peer * PeerPtr
;
+
using PeerPtr = Peer *
;
Q_DECLARE_METATYPE(PeerPtr)
QDataStream &operator<<(QDataStream &out, PeerPtr ptr);
Q_DECLARE_METATYPE(PeerPtr)
QDataStream &operator<<(QDataStream &out, PeerPtr ptr);