aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-20 19:43:17 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-20 19:43:17 +0900
commita39ebe7af964a9c311bf213ba84a1aa5ce43d381 (patch)
tree12320808d7c18f6a38d78bef43c213d287a7ffc7
parenta0eba40e90b030e8033ff3c59de4df0c5fc38479 (diff)
downloadlibquotient-a39ebe7af964a9c311bf213ba84a1aa5ce43d381.tar.gz
libquotient-a39ebe7af964a9c311bf213ba84a1aa5ce43d381.zip
Connection::accessToken - return QByteArray instead of QString
Because that's what it really is.
-rw-r--r--connection.cpp2
-rw-r--r--connection.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/connection.cpp b/connection.cpp
index 9169480e..d72e10ed 100644
--- a/connection.cpp
+++ b/connection.cpp
@@ -385,7 +385,7 @@ QString Connection::token() const
return accessToken();
}
-QString Connection::accessToken() const
+QByteArray Connection::accessToken() const
{
return d->data->accessToken();
}
diff --git a/connection.h b/connection.h
index ecebb2e7..eccde170 100644
--- a/connection.h
+++ b/connection.h
@@ -86,7 +86,7 @@ namespace QMatrixClient
Q_INVOKABLE QString deviceId() const;
/** @deprecated Use accessToken() instead. */
Q_INVOKABLE QString token() const;
- Q_INVOKABLE QString accessToken() const;
+ Q_INVOKABLE QByteArray accessToken() const;
Q_INVOKABLE SyncJob* syncJob() const;
Q_INVOKABLE int millisToReconnect() const;