sw/source/uibase/shells/textsh1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3dcf0f9008da3bcc6f7adabc60dd413852c59574 Author: Attila Szűcs <attila.sz...@collabora.com> AuthorDate: Wed Jul 17 10:56:41 2024 +0200 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Jul 17 17:23:22 2024 +0200 SW: fix warning ‘iType’ may be used uninitialized added default value: iType = 0; Change-Id: Ib8e3cde171736c4a7733107a403a64b7753339ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170613 Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 14225b4cb745..ed93f3b14a0a 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -2281,7 +2281,7 @@ void SwTextShell::Execute(SfxRequest &rReq) xContentControlText->setString( OStringToOUString(aContent, RTL_TEXTENCODING_UTF8)); - sal_Int32 iType; + sal_Int32 iType = 0; xContentControlProps->getPropertyValue( UNO_NAME_CONTENT_CONTROL_TYPE) >>= iType;