diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-21 18:10:32 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-23 17:37:53 +0200 |
commit | 4f18f360f8980adcb98d93fd95e94f0e95725070 (patch) | |
tree | 48d40bc7c22d4f071180513fdef932f7633f3df4 /common/propertymapper.cpp | |
parent | 5b64da01a381aca6890490fc92ef704f4342eb7e (diff) | |
download | sink-4f18f360f8980adcb98d93fd95e94f0e95725070.tar.gz sink-4f18f360f8980adcb98d93fd95e94f0e95725070.zip |
Debuginfo
Diffstat (limited to 'common/propertymapper.cpp')
-rw-r--r-- | common/propertymapper.cpp | 1 |
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 <> | |||
32 | QVariant propertyToVariant<QString>(const flatbuffers::String *property) | 32 | QVariant 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(); |