sw/source/uibase/uno/loktxdoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c2a2ed2b9a50dd54be2c18bf0cc3128b1fc57136 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Aug 26 15:53:47 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Aug 26 20:53:28 2024 +0200 ‘bShowingPlaceHolder’ may be used uninitialized [-Wmaybe-uninitialized] Change-Id: I894ea64b1bac5c6fbf88a85f30d1531f92b1c156 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172404 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/uibase/uno/loktxdoc.cxx b/sw/source/uibase/uno/loktxdoc.cxx index 4da4f2ad72ab..2d76e6110cd6 100644 --- a/sw/source/uibase/uno/loktxdoc.cxx +++ b/sw/source/uibase/uno/loktxdoc.cxx @@ -432,7 +432,7 @@ void GetDocStructure(tools::JsonWriter& rJsonWriter, SwDocShell* /*pDocShell*/, xContentControlProps->getPropertyValue(UNO_NAME_CONTENT_CONTROL_TYPE) >>= iType; SwContentControlType aType = static_cast<SwContentControlType>(iType); - bool bShowingPlaceHolder; + bool bShowingPlaceHolder = false; xContentControlProps->getPropertyValue(UNO_NAME_SHOWING_PLACE_HOLDER) >>= bShowingPlaceHolder; OUString aContent;