[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Feb 15 10:43:11 UTC 2019
sw/source/ui/vba/vbaapplication.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 58a2473d6672eb4ae4f55c3fe4c25ea23d932db5
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Feb 15 12:37:11 2019 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Feb 15 12:37:50 2019 +0200
Initialise an integer to 0, not false
Change-Id: I9d85f6a86d96353312bb00aeb1c173fa9fdfefda
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index 767709ad40c4..962029e793ff 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -554,7 +554,7 @@ SwWordBasic::FileClose( const css::uno::Any& Save )
{
uno::Reference< frame::XModel > xModel( mpApp->getCurrentDocument(), uno::UNO_SET_THROW );
- sal_Int16 nSave = false;
+ sal_Int16 nSave = 0;
if (Save.hasValue() && (Save >>= nSave) && (nSave == 0 || nSave == 1))
FileSave();
More information about the Libreoffice-commits
mailing list