diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-12 10:55:26 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-03-12 15:18:13 +0200 |
commit | 7da214a8c4af92c2027ab70056b14c639a8ac110 (patch) | |
tree | 9f4bfb68a2528e9e00c07ec98a85de418d4247ff /mobile-widgets/qmlmanager.h | |
parent | cdba35530ba5f9fedc0c803a0dbfada70cb57d7d (diff) | |
download | subsurface-7da214a8c4af92c2027ab70056b14c639a8ac110.tar.gz |
Mobile: pass QString as value to registerError()
registerError() may be called from a different thread context. Passing
the message as a const-reference may lead to a dangling reference.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r-- | mobile-widgets/qmlmanager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index cd2efdb35..2d5a58ac4 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -61,7 +61,7 @@ public: }; static QMLManager *instance(); - Q_INVOKABLE void registerError(const QString &error); + Q_INVOKABLE void registerError(QString error); QString consumeError(); QString cloudUserName() const; |