diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-29 19:57:47 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-30 22:09:29 +0000 |
commit | 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae (patch) | |
tree | 53fc970e113b37f6dd16b2af83b79db190ef8b93 /xmloff | |
parent | 7e6b8359b6f8833608a0574bd2931b6a62d92847 (diff) |
-Werror=maybe-uninitialized
Change-Id: I6e25dd666bf091e1d3cfc22792a319fd34af3523
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144865
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/inc/XMLThemeColorHandler.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/inc/XMLThemeColorHandler.hxx b/xmloff/inc/XMLThemeColorHandler.hxx index e98ef725682c..d505935f7127 100644 --- a/xmloff/inc/XMLThemeColorHandler.hxx +++ b/xmloff/inc/XMLThemeColorHandler.hxx @@ -32,9 +32,8 @@ public: const SvXMLUnitConverter&) const override { sal_Int16 nThemeIndex; - rValue >>= nThemeIndex; - if (nThemeIndex == -1) // Default + if (!(rValue >>= nThemeIndex) || nThemeIndex == -1) // Default return false; OUStringBuffer aOutBuffer; |