aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-30 17:08:37 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-30 17:08:37 +0900
commitb882b47c8201c5ef29d97747655c9751e47f2066 (patch)
tree151e2c169ccce59c0eaede0c54e43b9157d52d2f /lib/connection.h
parent58a95b07908d9f1afa1bd8f99d26ccac24ff3b89 (diff)
downloadlibquotient-b882b47c8201c5ef29d97747655c9751e47f2066.tar.gz
libquotient-b882b47c8201c5ef29d97747655c9751e47f2066.zip
Use C++14 [[deprecated]] attribute instead of doc-comment
Testing the waters in one place to start with.
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 2f1b0950..a1662449 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -166,12 +166,13 @@ namespace QMatrixClient
User* user();
QString userId() const;
QString deviceId() const;
- /** @deprecated Use accessToken() instead. */
- Q_INVOKABLE QString token() const;
QByteArray accessToken() const;
Q_INVOKABLE SyncJob* syncJob() const;
Q_INVOKABLE int millisToReconnect() const;
+ [[deprecated("Use accessToken() instead")]]
+ Q_INVOKABLE QString token() const;
+
/**
* Call this before first sync to load from previously saved file.
*