diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/converters.h | 2 | ||||
-rw-r--r-- | lib/events/event.h | 2 | ||||
-rw-r--r-- | lib/room.cpp | 4 | ||||
-rw-r--r-- | lib/room.h | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/lib/converters.h b/lib/converters.h index 70938ab9..53855a1f 100644 --- a/lib/converters.h +++ b/lib/converters.h @@ -61,7 +61,7 @@ namespace QMatrixClient inline auto toJson(const QJsonValue& val) { return val; } inline auto toJson(const QJsonObject& o) { return o; } inline auto toJson(const QJsonArray& arr) { return arr; } - // Special-case QStrings and bools to avoid ambiguity between QJsonValue + // Special-case QString to avoid ambiguity between QJsonValue // and QVariant (also, QString.isEmpty() is used in _impl::AddNode<> below) inline auto toJson(const QString& s) { return s; } diff --git a/lib/events/event.h b/lib/events/event.h index 5b33628f..e0d83976 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -209,7 +209,7 @@ namespace QMatrixClient inline auto registerEventType() { static const auto _ = setupFactory<EventT>(); - return _; + return _; // Only to facilitate usage in static initialisation } // === Event === diff --git a/lib/room.cpp b/lib/room.cpp index 2cbc8fc1..632f7fd7 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -157,8 +157,8 @@ class Room::Private fileTransfers[tid].status = FileTransferInfo::Failed; emit q->fileTransferFailed(tid, errorMessage); } - // A map from event/txn ids to information about the long operation; - // used for both download and upload operations + /// A map from event/txn ids to information about the long operation; + /// used for both download and upload operations QHash<QString, FileTransferPrivateInfo> fileTransfers; const RoomMessageEvent* getEventWithFile(const QString& eventId) const; @@ -323,6 +323,7 @@ namespace QMatrixClient * * Takes ownership of the event, deleting it once the matching one * arrives with the sync + * \return transaction id associated with the event. */ QString postEvent(RoomEvent* event); QString postJson(const QString& matrixType, |