sfx2/source/view/viewsh.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 914f7c73320183d5b526c6555663ec7c9539c4cc
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: Thu Jun 1 10:06:40 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>

diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index c663198bd796..27ffb93d4683 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -408,7 +408,7 @@ void aboutTextFormatting(std::string msg, const 
uno::Reference<css::accessibilit
 
                 if (attribute.Name == "CharHeight" || attribute.Name == 
"CharWeight")
                 {
-                    float fValue;
+                    float fValue(0.0);
                     attribute.Value >>= fValue;
                     sValue = OUString::number(fValue);
                 }
@@ -420,7 +420,7 @@ void aboutTextFormatting(std::string msg, const 
uno::Reference<css::accessibilit
                 }
                 else if (attribute.Name == "CharUnderline")
                 {
-                    sal_Int16 nValue;
+                    sal_Int16 nValue(0);
                     attribute.Value >>= nValue;
                     sValue = OUString::number(nValue);
                 }
@@ -430,7 +430,7 @@ void aboutTextFormatting(std::string msg, const 
uno::Reference<css::accessibilit
                 }
                 else if (attribute.Name == "Rsid")
                 {
-                    sal_uInt32 nValue;
+                    sal_uInt32 nValue(0);
                     attribute.Value >>= nValue;
                     sValue = OUString::number(nValue);
                 }

Reply via email to