summaryrefslogtreecommitdiffstats
path: root/common/domainadaptor.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-21 22:19:15 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-06-21 22:19:15 +0200
commit751f2c82c4121d28d0740bffb29a4fb273ec55c5 (patch)
tree05103eb2e09b905495969761eecf566be0d1f376 /common/domainadaptor.h
parenta1c6a7844cf8c9111b841ba0819a6856321d3397 (diff)
downloadsink-751f2c82c4121d28d0740bffb29a4fb273ec55c5.tar.gz
sink-751f2c82c4121d28d0740bffb29a4fb273ec55c5.zip
Catch errors
Diffstat (limited to 'common/domainadaptor.h')
-rw-r--r--common/domainadaptor.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/domainadaptor.h b/common/domainadaptor.h
index e97c5f5..8ac8171 100644
--- a/common/domainadaptor.h
+++ b/common/domainadaptor.h
@@ -94,14 +94,13 @@ public:
94 { 94 {
95 } 95 }
96 96
97 virtual QVariant setProperty(const QByteArray &key, const QVariant &value) const 97 virtual void setProperty(const QByteArray &key, const QVariant &value) Q_DECL_OVERRIDE
98 { 98 {
99 Q_ASSERT(false);
100 Warning() << "Can't set property " << key; 99 Warning() << "Can't set property " << key;
101 return QVariant(); 100 Q_ASSERT(false);
102 } 101 }
103 102
104 virtual QVariant getProperty(const QByteArray &key) const 103 virtual QVariant getProperty(const QByteArray &key) const Q_DECL_OVERRIDE
105 { 104 {
106 if (mResourceBuffer && mResourceMapper->hasMapping(key)) { 105 if (mResourceBuffer && mResourceMapper->hasMapping(key)) {
107 return mResourceMapper->getProperty(key, mResourceBuffer); 106 return mResourceMapper->getProperty(key, mResourceBuffer);