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:
Berthold Stoeger 2018-03-12 10:55:26 +01:00 committed by Lubomir I. Ivanov
parent cdba35530b
commit 7da214a8c4
2 changed files with 2 additions and 2 deletions

View file

@ -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())