diff options
Diffstat (limited to 'common/propertymapper.cpp')
-rw-r--r-- | common/propertymapper.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/common/propertymapper.cpp b/common/propertymapper.cpp index f9f9c9b..75d0536 100644 --- a/common/propertymapper.cpp +++ b/common/propertymapper.cpp | |||
@@ -258,7 +258,7 @@ QVariant propertyToVariant<QList<Sink::ApplicationDomain::Contact::Email>>(const | |||
258 | template <> | 258 | template <> |
259 | QVariant propertyToVariant<bool>(uint8_t property) | 259 | QVariant propertyToVariant<bool>(uint8_t property) |
260 | { | 260 | { |
261 | return static_cast<bool>(property); | 261 | return bool(property); |
262 | } | 262 | } |
263 | 263 | ||
264 | template <> | 264 | template <> |
@@ -268,6 +268,18 @@ QVariant propertyToVariant<int>(uint8_t property) | |||
268 | } | 268 | } |
269 | 269 | ||
270 | template <> | 270 | template <> |
271 | QVariant propertyToVariant<int>(int property) | ||
272 | { | ||
273 | return property; | ||
274 | } | ||
275 | |||
276 | template <> | ||
277 | QVariant propertyToVariant<bool>(int property) | ||
278 | { | ||
279 | return bool(property); | ||
280 | } | ||
281 | |||
282 | template <> | ||
271 | QVariant propertyToVariant<QDateTime>(const flatbuffers::String *property) | 283 | QVariant propertyToVariant<QDateTime>(const flatbuffers::String *property) |
272 | { | 284 | { |
273 | if (property) { | 285 | if (property) { |