diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2019-02-23 13:59:46 +0300 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2019-02-23 16:56:47 +0300 |
commit | 9931e90193d4a233893540ac5534fa46d7a8d006 (patch) | |
tree | 4685e6f11e857fd1cb32c06450e0d3fde61a9dbf | |
parent | 02872ea0cf6dccabb55b38a33fc5ad67f183254b (diff) | |
download | libquotient-9931e90193d4a233893540ac5534fa46d7a8d006.tar.gz libquotient-9931e90193d4a233893540ac5534fa46d7a8d006.zip |
Remove the 'pretty' SupportedRoomVersion vector debug operator
This way we conform with Qt standard debug output and do not rely
on a Qt private API.
This also fixes compilation for Qt < 5.7.
-rw-r--r-- | lib/connection.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/connection.h b/lib/connection.h index 1faee255..1a81c29e 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -266,21 +266,12 @@ namespace QMatrixClient static const QString StableTag; // "stable", as of CS API 0.5 bool isStable() const { return status == StableTag; } - // Pretty-printing - friend QDebug operator<<(QDebug dbg, const SupportedRoomVersion& v) { QDebugStateSaver _(dbg); return dbg.nospace() << v.id << '/' << v.status; } - - friend QDebug operator<<(QDebug dbg, - const QVector<SupportedRoomVersion>& vs) - { - return QtPrivate::printSequentialContainer( - dbg, "", vs); - } }; /// Get the room version recommended by the server |