From da066db14826f06ce877711f3a7d74e8b04163de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 10 Feb 2022 10:24:45 -0300 Subject: [PATCH] wip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/link/linkconfiguration.cpp | 6 +++--- src/settings/varianttree.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/link/linkconfiguration.cpp b/src/link/linkconfiguration.cpp index 5af6404a8..6c0ac9309 100644 --- a/src/link/linkconfiguration.cpp +++ b/src/link/linkconfiguration.cpp @@ -180,9 +180,9 @@ QDebug operator<<(QDebug d, const LinkConfiguration& other) QDataStream& operator<<(QDataStream& out, const LinkConfiguration linkConfiguration) { out << linkConfiguration.configurationStructPtr()->name; - out << QVariant(linkConfiguration.configurationStructPtr()->args); - out << QVariant(linkConfiguration.configurationStructPtr()->type); - out << QVariant(static_cast(linkConfiguration.configurationStructPtr()->deviceType)); + out << linkConfiguration.configurationStructPtr()->args; + out << linkConfiguration.configurationStructPtr()->type; + out << static_cast(linkConfiguration.configurationStructPtr()->deviceType); return out; } diff --git a/src/settings/varianttree.cpp b/src/settings/varianttree.cpp index 95c97cfb2..6a210edec 100644 --- a/src/settings/varianttree.cpp +++ b/src/settings/varianttree.cpp @@ -17,7 +17,7 @@ QVariantMap* VariantTree::getMap(const QStringList& path) for (auto& key : path) { if (!finalMap->contains(key)) { finalMap->insert(key, QVariantMap()); - } else if ((*finalMap)[key].type() != QVariant::Map) { + } else if ((*finalMap)[key].typeId() != QVariant::Map) { finalMap->insert(key, QVariantMap()); } finalMap = static_cast((*finalMap)[key].data());