diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 09:15:07 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 09:15:07 +0200 |
commit | 808d95075e557107987468f8701d67d92d2be824 (patch) | |
tree | e833b3d7605e1f6347510c7b2d1cf2e48540cbc4 /vcl | |
parent | e584bc808b634bf18ba5f7538d598e135b28f090 (diff) |
-Werror=maybe-uninitialized
Change-Id: If03aefa1582e41955b9656b4bae88731735a4660
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/helper/commandinfoprovider.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/helper/commandinfoprovider.cxx b/vcl/source/helper/commandinfoprovider.cxx index 6cd7bb103787..881a008f0ea2 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; } } } |