From 7facde27194b866e589eada3f5657b0b5c69efb0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 14 Apr 2019 16:39:53 +0200 Subject: loplugin:sequentialassign in test..tools Change-Id: I3a6c5807c3262dde6756551e9e955c4ceae09b4f Reviewed-on: https://gerrit.libreoffice.org/70732 Tested-by: Jenkins Reviewed-by: Noel Grandin --- test/source/sheet/xdatabaserange.cxx | 3 +-- test/source/sheet/xdatapilotdescriptor.cxx | 3 +-- test/source/sheet/xfunctiondescriptions.cxx | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/source/sheet/xdatabaserange.cxx b/test/source/sheet/xdatabaserange.cxx index d00631820647..36ce1d5362fb 100644 --- a/test/source/sheet/xdatabaserange.cxx +++ b/test/source/sheet/xdatabaserange.cxx @@ -46,8 +46,7 @@ void XDatabaseRange::testDataArea() aCellAddress.StartRow = 2; aCellAddress.EndRow = 5; xDBRange->setDataArea(aCellAddress); - table::CellRangeAddress aValue; - aValue = xDBRange->getDataArea(); + table::CellRangeAddress aValue = xDBRange->getDataArea(); CPPUNIT_ASSERT_EQUAL( aCellAddress.Sheet, aValue.Sheet ); CPPUNIT_ASSERT_EQUAL( aCellAddress.StartRow, aValue.StartRow ); CPPUNIT_ASSERT_EQUAL( aCellAddress.EndRow, aValue.EndRow ); diff --git a/test/source/sheet/xdatapilotdescriptor.cxx b/test/source/sheet/xdatapilotdescriptor.cxx index eb3b69636315..df1ccaaf2bee 100644 --- a/test/source/sheet/xdatapilotdescriptor.cxx +++ b/test/source/sheet/xdatapilotdescriptor.cxx @@ -47,8 +47,7 @@ void XDataPilotDescriptor::testSourceRange() aAddress.EndRow = 5; xDescr->setSourceRange(aAddress); - table::CellRangeAddress aReturn; - aReturn = xDescr->getSourceRange(); + table::CellRangeAddress aReturn = xDescr->getSourceRange(); CPPUNIT_ASSERT_EQUAL(aAddress.Sheet, aReturn.Sheet); CPPUNIT_ASSERT_EQUAL(aAddress.StartColumn, aReturn.StartColumn); diff --git a/test/source/sheet/xfunctiondescriptions.cxx b/test/source/sheet/xfunctiondescriptions.cxx index 5a71f532a4be..fb3820590586 100644 --- a/test/source/sheet/xfunctiondescriptions.cxx +++ b/test/source/sheet/xfunctiondescriptions.cxx @@ -53,8 +53,7 @@ void XFunctionDescriptions::testGetById() // fetch the same descriptions by its id sal_Int32 aId2 = 0; OUString aName2; - uno::Sequence aProps2; - aProps2 = xFD->getById(aId1); + uno::Sequence aProps2 = xFD->getById(aId1); CPPUNIT_ASSERT_MESSAGE("Received empty FunctionDescriptions from getById()", aProps2.getLength()); for (const auto& aProp : aProps2) -- cgit