[Libreoffice-commits] core.git: desktop/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 8 10:51:48 UTC 2019
desktop/source/lib/init.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 502f0690c362518681723e029d810762f652c675
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Aug 8 17:45:49 2019 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Aug 8 12:50:58 2019 +0200
lok: Output a SAL_WARN only if message is not empty
Because we call SetLastExceptionMsg with an empty message when we
want to reset the exception message and this happens all the time
in the LOK code.
Change-Id: Iead1b561d303d610db5e02f79a7af6c72b43834a
Reviewed-on: https://gerrit.libreoffice.org/77144
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index e1640836bf3c..a2a6ba56f496 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -171,7 +171,7 @@ static std::weak_ptr< LibreOfficeKitDocumentClass > gDocumentClass;
static void SetLastExceptionMsg(const OUString& s = OUString())
{
- SAL_WARN("lok", "lok exception " + s);
+ SAL_WARN_IF(!s.isEmpty(), "lok", "lok exception '" + s + "'");
if (gImpl)
gImpl->maLastExceptionMsg = s;
}
More information about the Libreoffice-commits
mailing list