formatting

This commit is contained in:
Seth Alves 2015-06-21 18:12:24 -07:00
parent 746033f3bd
commit 717c8ed3ad

View file

@ -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;
}
}