mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
repair a crash while overriding a config map
This commit is contained in:
parent
954fbc2017
commit
e6449da890
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ void HifiConfigVariantMap::addMissingValuesToExistingMap(QVariantMap& existingMa
|
||||||
|
|
||||||
if (newMap[key].canConvert(QMetaType::QVariantMap) && existingMap[key].canConvert(QMetaType::QVariantMap)) {
|
if (newMap[key].canConvert(QMetaType::QVariantMap) && existingMap[key].canConvert(QMetaType::QVariantMap)) {
|
||||||
// there's a variant map below and the existing map has one too, so we need to keep recursing
|
// there's a variant map below and the existing map has one too, so we need to keep recursing
|
||||||
addMissingValuesToExistingMap(reinterpret_cast<QVariantMap&>(existingMap[key]), newMap[key].toMap());
|
addMissingValuesToExistingMap(*reinterpret_cast<QVariantMap*>(existingMap[key].data()), newMap[key].toMap());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
existingMap[key] = newMap[key];
|
existingMap[key] = newMap[key];
|
||||||
|
|
Loading…
Reference in a new issue