diff options
Diffstat (limited to 'common/propertymapper.cpp')
-rw-r--r-- | common/propertymapper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/propertymapper.cpp b/common/propertymapper.cpp index 5348b11..ebe5cb3 100644 --- a/common/propertymapper.cpp +++ b/common/propertymapper.cpp | |||
@@ -51,7 +51,7 @@ template <> | |||
51 | QVariant propertyToVariant<QString>(const flatbuffers::String *property) | 51 | QVariant propertyToVariant<QString>(const flatbuffers::String *property) |
52 | { | 52 | { |
53 | if (property) { | 53 | if (property) { |
54 | //We have to copy the memory, otherwise it would become eventually invalid | 54 | // We have to copy the memory, otherwise it would become eventually invalid |
55 | return QString::fromStdString(property->c_str()); | 55 | return QString::fromStdString(property->c_str()); |
56 | } | 56 | } |
57 | return QVariant(); | 57 | return QVariant(); |
@@ -61,7 +61,7 @@ template <> | |||
61 | QVariant propertyToVariant<QByteArray>(const flatbuffers::String *property) | 61 | QVariant propertyToVariant<QByteArray>(const flatbuffers::String *property) |
62 | { | 62 | { |
63 | if (property) { | 63 | if (property) { |
64 | //We have to copy the memory, otherwise it would become eventually invalid | 64 | // We have to copy the memory, otherwise it would become eventually invalid |
65 | return QString::fromStdString(property->c_str()).toUtf8(); | 65 | return QString::fromStdString(property->c_str()).toUtf8(); |
66 | } | 66 | } |
67 | return QVariant(); | 67 | return QVariant(); |
@@ -71,7 +71,7 @@ template <> | |||
71 | QVariant propertyToVariant<QByteArray>(const flatbuffers::Vector<uint8_t> *property) | 71 | QVariant propertyToVariant<QByteArray>(const flatbuffers::Vector<uint8_t> *property) |
72 | { | 72 | { |
73 | if (property) { | 73 | if (property) { |
74 | //We have to copy the memory, otherwise it would become eventually invalid | 74 | // We have to copy the memory, otherwise it would become eventually invalid |
75 | return QByteArray(reinterpret_cast<const char *>(property->Data()), property->Length()); | 75 | return QByteArray(reinterpret_cast<const char *>(property->Data()), property->Length()); |
76 | } | 76 | } |
77 | return QVariant(); | 77 | return QVariant(); |
@@ -87,7 +87,7 @@ template <> | |||
87 | QVariant propertyToVariant<QDateTime>(const flatbuffers::String *property) | 87 | QVariant propertyToVariant<QDateTime>(const flatbuffers::String *property) |
88 | { | 88 | { |
89 | if (property) { | 89 | if (property) { |
90 | //We have to copy the memory, otherwise it would become eventually invalid | 90 | // We have to copy the memory, otherwise it would become eventually invalid |
91 | return QDateTime::fromString(QString::fromStdString(property->c_str())); | 91 | return QDateTime::fromString(QString::fromStdString(property->c_str())); |
92 | } | 92 | } |
93 | return QVariant(); | 93 | return QVariant(); |