mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:23:36 +02:00
Win build fix
This commit is contained in:
parent
18a696d88c
commit
0037a1f4a7
2 changed files with 4 additions and 6 deletions
|
@ -54,16 +54,13 @@ QJsonObject DomainServerNodeData::overrideValuesIfNeeded(const QJsonObject& newS
|
|||
|
||||
QJsonArray DomainServerNodeData::overrideValuesIfNeeded(const QJsonArray& newStats) {
|
||||
QJsonArray result;
|
||||
for (int i = 0; i < newStats.size(); ++i) {
|
||||
const auto& value = newStats[i];
|
||||
|
||||
for (const auto& value : newStats) {
|
||||
if (value.isObject()) {
|
||||
|
||||
result.push_back(overrideValuesIfNeeded(value.toObject()));
|
||||
} else if (value.isArray()) {
|
||||
result.push_back(overrideValuesIfNeeded(value.toArray()));
|
||||
} else {
|
||||
result.push_back(newStats[i]);
|
||||
result.push_back(value);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -61,7 +61,8 @@ protected:
|
|||
PacketList(PacketList&& other);
|
||||
|
||||
virtual qint64 writeData(const char* data, qint64 maxSize);
|
||||
virtual qint64 readData(char* data, qint64 maxSize) { Q_ASSERT(false); }
|
||||
// Not implemented, added an assert so that it doesn't get used by accident
|
||||
virtual qint64 readData(char* data, qint64 maxSize) { Q_ASSERT(false); return 0; }
|
||||
|
||||
PacketType _packetType;
|
||||
std::list<std::unique_ptr<Packet>> _packets;
|
||||
|
|
Loading…
Reference in a new issue