sfx2/source/view/viewsh.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 845054aa25b7cba1daa1ff30b142d549027299bd Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed May 31 19:56:24 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Jun 2 11:31:22 2023 +0200 WaE: fix more warnings I see with gcc-13.1.1 Change-Id: I8f1087cb98991363ec78a21a90a55724ba3628ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152466 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152528 Tested-by: Jenkins diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index a818a98380bb..e21afa252762 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -502,7 +502,7 @@ void LOKDocumentFocusListener::notifyEvent( const accessibility::AccessibleEvent if (attribute.Name == "CharHeight" || attribute.Name == "CharWeight") { - float fValue; + float fValue(0.0); attribute.Value >>= fValue; sValue = OUString::number(fValue); } @@ -514,7 +514,7 @@ void LOKDocumentFocusListener::notifyEvent( const accessibility::AccessibleEvent } else if (attribute.Name == "CharUnderline") { - sal_Int16 nValue; + sal_Int16 nValue(0); attribute.Value >>= nValue; sValue = OUString::number(nValue); } @@ -524,7 +524,7 @@ void LOKDocumentFocusListener::notifyEvent( const accessibility::AccessibleEvent } else if (attribute.Name == "Rsid") { - sal_uInt32 nValue; + sal_uInt32 nValue(0); attribute.Value >>= nValue; sValue = OUString::number(nValue); }