Skip to content

Commit

Permalink
Restore compatibility with Qt 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jan 6, 2025
1 parent 37075ec commit 5f755a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncthingconnector/syncthingconnectionmockhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ MockedReply *MockedReply::forRequest(const QString &method, const QString &path,
const auto minIndex = (page - 1) * perPage;
const auto maxIndex = minIndex + perPage - 1;
auto currentIndex = 0;
auto obj = QJsonDocument::fromJson(QByteArray(needed)).object();
auto obj = QJsonDocument::fromJson(QByteArray(needed.data(), static_cast<QByteArray::size_type>(needed.size()))).object();
auto keys = obj.keys();
auto filteredObj = QJsonObject();
for (const auto &key : keys) {
Expand Down

0 comments on commit 5f755a7

Please sign in to comment.