test/source/unoapi_property_testers.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 1b7a4ea1d59c9f5cb9d5312d362c1d4decb19e02
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Sat Jun 18 15:05:52 2022 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Mon Jun 20 08:32:20 2022 +0200

    -Werror=maybe-uninitialized
    
    Change-Id: I640fbd373262c008c44b616fbc0c05d28778226d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136083
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/test/source/unoapi_property_testers.cxx 
b/test/source/unoapi_property_testers.cxx
index f261c4ce3736..c0987d8c0ff8 100644
--- a/test/source/unoapi_property_testers.cxx
+++ b/test/source/unoapi_property_testers.cxx
@@ -74,7 +74,7 @@ void testDoubleProperty(uno::Reference<beans::XPropertySet> 
const& xPropertySet,
     uno::Any aNewValue;
 
     double dPropertyGet;
-    double dPropertySet;
+    double dPropertySet = {};
 
     OString msgGet
         = "Unable to get PropertyValue: " + OUStringToOString(name, 
RTL_TEXTENCODING_UTF8);
@@ -93,8 +93,8 @@ void 
testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet> const& xProp
 {
     uno::Any aNewValue;
 
-    double dPropertyGet;
-    double dPropertySet;
+    double dPropertyGet = {};
+    double dPropertySet = {};
 
     OString msgGet
         = "Unable to get PropertyValue: " + OUStringToOString(name, 
RTL_TEXTENCODING_UTF8);

Reply via email to