[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann
sbergman at redhat.com
Fri Oct 14 07:18:22 UTC 2016
vcl/source/helper/commandinfoprovider.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 808d95075e557107987468f8701d67d92d2be824
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Oct 14 09:15:07 2016 +0200
-Werror=maybe-uninitialized
Change-Id: If03aefa1582e41955b9656b4bae88731735a4660
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx
index 6cd7bb1..881a008 100644
--- a/vcl/source/helper/commandinfoprovider.cxx
+++ b/vcl/source/helper/commandinfoprovider.cxx
@@ -318,8 +318,8 @@ bool CommandInfoProvider::IsExperimental(const OUString& rsCommandName,
if (aProperties[nIndex].Name == "IsExperimental")
{
sal_Int32 nValue;
- aProperties[nIndex].Value >>= nValue;
- return nValue == 1;
+ return (aProperties[nIndex].Value >>= nValue)
+ && nValue == 1;
}
}
}
More information about the Libreoffice-commits
mailing list