Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Mar 3, 2022
1 parent 0f4217d commit da066db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/link/linkconfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(linkConfiguration.configurationStructPtr()->deviceType));
out << linkConfiguration.configurationStructPtr()->args;
out << linkConfiguration.configurationStructPtr()->type;
out << static_cast<int>(linkConfiguration.configurationStructPtr()->deviceType);
return out;
}

Expand Down
2 changes: 1 addition & 1 deletion src/settings/varianttree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<QVariantMap*>((*finalMap)[key].data());
Expand Down

0 comments on commit da066db

Please sign in to comment.