-Werror=maybe-uninitialized
> xmloff/source/text/txtimppr.cxx:615:9: error: ‘nVertOrient’ may be used uninitialized [-Werror=maybe-uninitialized]
> 615 | switch( nVertOrient )
> | ^~~~~~
So use the same approach for nVertOrient as was already used for nVertOrientRel
in 7ab4c76e73 "INTEGRATION: CWS warningfixes02
(1.18.10); FILE MERGED", initializing it to 0 aka css.text.VertOrientation.NONE.
Change-Id: Ibf9b259f87fb030e426664bc3bbd63fc1bfb0797
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197832
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
This commit is contained in:
@@ -608,7 +608,7 @@ void XMLTextImportPropertyMapper::finished(
|
||||
|
||||
if( pVertOrient && pVertOrientRelAsChar )
|
||||
{
|
||||
sal_Int16 nVertOrient;
|
||||
sal_Int16 nVertOrient = 0;
|
||||
pVertOrient->maValue >>= nVertOrient;
|
||||
sal_Int16 nVertOrientRel = 0;
|
||||
pVertOrientRelAsChar->maValue >>= nVertOrientRel;
|
||||
|
||||
Reference in New Issue
Block a user