summaryrefslogtreecommitdiffstats
path: root/common/propertymapper.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-03 09:01:05 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-03-03 09:01:05 +0100
commit4d9746c828558c9f872e0aed52442863affb25d5 (patch)
tree507d7c2ba67f47d3cbbcf01a722236ff1b48426b /common/propertymapper.cpp
parent9cea920b7dd51867a0be0fed2f461b6be73c103e (diff)
downloadsink-4d9746c828558c9f872e0aed52442863affb25d5.tar.gz
sink-4d9746c828558c9f872e0aed52442863affb25d5.zip
Fromatted the whole codebase with clang-format.
clang-format -i */**{.cpp,.h}
Diffstat (limited to 'common/propertymapper.cpp')
-rw-r--r--common/propertymapper.cpp8
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 <>
51QVariant propertyToVariant<QString>(const flatbuffers::String *property) 51QVariant 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 <>
61QVariant propertyToVariant<QByteArray>(const flatbuffers::String *property) 61QVariant 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 <>
71QVariant propertyToVariant<QByteArray>(const flatbuffers::Vector<uint8_t> *property) 71QVariant 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 <>
87QVariant propertyToVariant<QDateTime>(const flatbuffers::String *property) 87QVariant 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();