summaryrefslogtreecommitdiffstats
path: root/common/propertymapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/propertymapper.cpp')
-rw-r--r--common/propertymapper.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/propertymapper.cpp b/common/propertymapper.cpp
index 0896aa6..89495ae 100644
--- a/common/propertymapper.cpp
+++ b/common/propertymapper.cpp
@@ -32,6 +32,7 @@ template <>
32QVariant propertyToVariant<QString>(const flatbuffers::String *property) 32QVariant propertyToVariant<QString>(const flatbuffers::String *property)
33{ 33{
34 if (property) { 34 if (property) {
35 //We have to copy the memory, otherwise it would become eventually invalid
35 return QString::fromStdString(property->c_str()); 36 return QString::fromStdString(property->c_str());
36 } 37 }
37 return QVariant(); 38 return QVariant();