diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-18 21:26:43 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-18 21:26:43 +0200 |
commit | 6b355d1aa87072143e09ea5269e8cf465318a64f (patch) | |
tree | 5de8b227d319e8c677ef4ea3d7931233a808bd5a /lib/syncdata.cpp | |
parent | 2dd85770cbfd6d9c7506757f25765c05ef74987d (diff) | |
download | libquotient-6b355d1aa87072143e09ea5269e8cf465318a64f.tar.gz libquotient-6b355d1aa87072143e09ea5269e8cf465318a64f.zip |
Drop pre-Qt 5.15 code
Diffstat (limited to 'lib/syncdata.cpp')
-rw-r--r-- | lib/syncdata.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/syncdata.cpp b/lib/syncdata.cpp index 95d3c7e4..ff3dc0c2 100644 --- a/lib/syncdata.cpp +++ b/lib/syncdata.cpp @@ -179,12 +179,7 @@ QJsonObject SyncData::loadJson(const QString& fileName) const auto json = data.startsWith('{') ? QJsonDocument::fromJson(data).object() -#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) - : QCborValue::fromCbor(data).toJsonValue().toObject() -#else - : QJsonDocument::fromBinaryData(data).object() -#endif - ; + : QCborValue::fromCbor(data).toJsonValue().toObject(); if (json.isEmpty()) { qCWarning(MAIN) << "State cache in" << fileName << "is broken or empty, discarding"; |