summaryrefslogtreecommitdiff
path: root/TelepathyQt/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'TelepathyQt/connection.h')
-rw-r--r--TelepathyQt/connection.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/TelepathyQt/connection.h b/TelepathyQt/connection.h
index 0ca47a53..1f8d899a 100644
--- a/TelepathyQt/connection.h
+++ b/TelepathyQt/connection.h
@@ -51,7 +51,6 @@ namespace Tp
class Channel;
class ConnectionCapabilities;
class ConnectionLowlevel;
-class Contact;
class ContactManager;
class PendingChannel;
class PendingContactAttributes;
@@ -83,7 +82,7 @@ public:
const ChannelFactoryConstPtr &channelFactory,
const ContactFactoryConstPtr &contactFactory);
- virtual ~Connection();
+ ~Connection() override;
ChannelFactoryConstPtr channelFactory() const;
ContactFactoryConstPtr contactFactory() const;
@@ -104,7 +103,7 @@ public:
ErrorDetails &operator=(const ErrorDetails &other);
- bool isValid() const { return mPriv.constData() != 0; }
+ bool isValid() const { return mPriv.constData() != nullptr; }
bool hasDebugMessage() const
{
@@ -244,6 +243,6 @@ private:
} // Tp
-Q_DECLARE_METATYPE(Tp::Connection::ErrorDetails);
+Q_DECLARE_METATYPE(Tp::Connection::ErrorDetails)
#endif