Changeset 73613 in vbox
- Timestamp:
- Aug 10, 2018 12:04:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r73580 r73613 177 177 /* Make sure field is bool: */ 178 178 AssertMsgReturn(field.isBool(), ("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()), false); 179 LogRel(("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()));180 179 const bool fFieldValue = field.toBool(); 181 180 //printf(" Field value: \"%s\"\n", fFieldValue ? "true" : "false"); … … 189 188 /* Make sure field is double: */ 190 189 AssertMsgReturn(field.isDouble(), ("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()), 0); 191 LogRel(("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()));192 190 const double dFieldValue = field.toDouble(); 193 191 //printf(" Field value: \"%f\"\n", dFieldValue); … … 201 199 /* Make sure field is string: */ 202 200 AssertMsgReturn(field.isString(), ("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()), QString()); 203 LogRel(("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()));204 201 const QString strFieldValue = field.toString(); 205 202 //printf(" Field value: \"%s\"\n", strFieldValue.toUtf8().constData()); … … 212 209 { 213 210 /* Make sure field is array: */ 214 AssertMsgReturn(field.isArray(), ("Item '%s' has wrong structure!", strFieldName.toUtf8().constData()), QStringList()); 215 LogRel(("Field '%s' has wrong structure!", strFieldName.toUtf8().constData())); 211 AssertMsgReturn(field.isArray(), ("Field '%s' has wrong structure!", strFieldName.toUtf8().constData()), QStringList()); 216 212 const QJsonArray fieldValueArray = field.toArray(); 217 213 QStringList fieldValueStirngList; 218 214 for (int i = 0; i < fieldValueArray.count(); ++i) 219 fieldValueStirngList << fieldValueArray[i].toString();215 fieldValueStirngList << fieldValueArray[i].toString(); 220 216 //printf(" Field value: \"%s\"\n", fieldValueStirngList.join(", ").toUtf8().constData()); 221 217
Note:
See TracChangeset
for help on using the changeset viewer.