summaryrefslogtreecommitdiffstats
path: root/common/propertymapper.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-21 18:10:32 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-23 17:37:53 +0200
commit4f18f360f8980adcb98d93fd95e94f0e95725070 (patch)
tree48d40bc7c22d4f071180513fdef932f7633f3df4 /common/propertymapper.cpp
parent5b64da01a381aca6890490fc92ef704f4342eb7e (diff)
downloadsink-4f18f360f8980adcb98d93fd95e94f0e95725070.tar.gz
sink-4f18f360f8980adcb98d93fd95e94f0e95725070.zip
Debuginfo
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();