[Libreoffice-commits] core.git: test/source

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 10 00:01:54 UTC 2020


 test/source/sheet/xsheetcondition.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a6ad91d3e9c956338cf9daed9a3fad64bfcbdcb5
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Mon Feb 10 01:06:17 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Feb 10 01:01:21 2020 +0100

    cppcheck: redundantInitialization in XSheetCondition::testGetSetOperator()
    
    Change-Id: I0895478ec5bbb69cc8a7d88d848755aeabe7b51d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88350
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/test/source/sheet/xsheetcondition.cxx b/test/source/sheet/xsheetcondition.cxx
index 9093e8aea7fd..27068fec62ee 100644
--- a/test/source/sheet/xsheetcondition.cxx
+++ b/test/source/sheet/xsheetcondition.cxx
@@ -46,7 +46,7 @@ void XSheetCondition::testGetSetFormula2()
 void XSheetCondition::testGetSetOperator()
 {
     uno::Reference<sheet::XSheetCondition> xSheetCondition(init(), UNO_QUERY_THROW);
-    sheet::ConditionOperator aOperator = sheet::ConditionOperator_NONE;
+    sheet::ConditionOperator aOperator;
     CPPUNIT_ASSERT_NO_THROW_MESSAGE("Unable to get Operator",
                                     aOperator = xSheetCondition->getOperator());
 


More information about the Libreoffice-commits mailing list