Browse Source

Show type name in btjson.cpp@processMap assert

This may help to solve #5381
adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
bb17d4a8dd
  1. 5
      src/webui/btjson.cpp

5
src/webui/btjson.cpp

@ -775,7 +775,10 @@ void processMap(QVariantMap prevData, QVariantMap data, QVariantMap &syncData)
syncData[key] = data[key]; syncData[key] = data[key];
break; break;
default: default:
Q_ASSERT(0); Q_ASSERT_X(false, "processMap"
, QString("Unexpected type: %1")
.arg(QMetaType::typeName(static_cast<QMetaType::Type>(data[key].type())))
.toUtf8().constData());
} }
} }
} }

Loading…
Cancel
Save