diff options
author | 2018-03-12 10:55:26 +0100 | |
---|---|---|
committer | 2018-03-12 15:18:13 +0200 | |
commit | 7da214a8c4af92c2027ab70056b14c639a8ac110 (patch) | |
tree | 9f4bfb68a2528e9e00c07ec98a85de418d4247ff /mobile-widgets/qmlmanager.cpp | |
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.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 08882c324..9a8666a8c 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -89,7 +89,7 @@ extern "C" int gitProgressCB(const char *text) return 0; } -void QMLManager::registerError(const QString &error) +void QMLManager::registerError(QString error) { appendTextToLog(error); if (!m_lastError.isEmpty()) |