mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-26 08:16:15 +02:00
formatting
This commit is contained in:
parent
746033f3bd
commit
717c8ed3ad
1 changed files with 46 additions and 45 deletions
|
@ -78,7 +78,7 @@ QString JSONBreakableMarshal::toString(const QJsonValue& jsonValue, const QStrin
|
|||
// default the value as a string to unknown in case conversion fails
|
||||
QString valueAsString = JSON_UNKNOWN_AS_STRING;
|
||||
|
||||
// as the QJsonValue what type it is and format its value as a string accordingly
|
||||
// ask the QJsonValue what type it is and format its value as a string accordingly
|
||||
if (jsonValue.isNull()) {
|
||||
valueAsString = JSON_NULL_AS_STRING;
|
||||
} else if (jsonValue.isBool()) {
|
||||
|
@ -131,7 +131,8 @@ QVariant JSONBreakableMarshal::fromString(const QString& marshalValue) {
|
|||
result = stringRegex.cap(1);
|
||||
} else {
|
||||
// we failed to convert the value to anything, set the result to our unknown value
|
||||
qDebug() << "Unrecognized output from JSONBreakableMarshal - could not convert" << marshalValue << "to QVariant.";
|
||||
qDebug() << "Unrecognized output from JSONBreakableMarshal - could not convert"
|
||||
<< marshalValue << "to QVariant.";
|
||||
result = JSON_UNKNOWN_AS_STRING;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue