Browse Source

Merge pull request #5389 from glassez/type_assert

Show type name in btjson.cpp@processMap assert
adaptive-webui-19844
sledgehammer999 9 years ago committed by GitHub
parent
commit
dbd079dfb8
  1. 5
      src/webui/btjson.cpp

5
src/webui/btjson.cpp

@ -775,7 +775,10 @@ void processMap(QVariantMap prevData, QVariantMap data, QVariantMap &syncData) @@ -775,7 +775,10 @@ void processMap(QVariantMap prevData, QVariantMap data, QVariantMap &syncData)
syncData[key] = data[key];
break;
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