xmloff/source/text/txtimppr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b531b732a03ff82bc1a5c81b2c6634f02ad45450 Author: Stephan Bergmann <[email protected]> AuthorDate: Thu Jan 22 09:37:46 2026 +0100 Commit: Andras Timar <[email protected]> CommitDate: Mon Mar 9 09:52:52 2026 +0100 -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 7ab4c76e73e6ebabe1363f542d61c9bc5b91cbc2 "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 <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200980 Reviewed-by: Andras Timar <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/xmloff/source/text/txtimppr.cxx b/xmloff/source/text/txtimppr.cxx index 7fde78724227..38e6f66960e4 100644 --- a/xmloff/source/text/txtimppr.cxx +++ b/xmloff/source/text/txtimppr.cxx @@ -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;
