mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
cdba35530b
commit
7da214a8c4
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue