xmloff/inc/XMLThemeColorHandler.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Dec 29 19:57:47 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Dec 30 22:09:29 2022 +0000 -Werror=maybe-uninitialized Change-Id: I6e25dd666bf091e1d3cfc22792a319fd34af3523 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144865 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> 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;