diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-14 16:39:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-15 08:37:21 +0200 |
commit | 7facde27194b866e589eada3f5657b0b5c69efb0 (patch) | |
tree | 73c66b4faf608a3ade0058ef2f72c5a49de44aaf /test | |
parent | 9f392d0c09bd946e4660ccc2d48ee3ae1367343c (diff) |
loplugin:sequentialassign in test..tools
Change-Id: I3a6c5807c3262dde6756551e9e955c4ceae09b4f
Reviewed-on: https://gerrit.libreoffice.org/70732
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/xdatabaserange.cxx | 3 | ||||
-rw-r--r-- | test/source/sheet/xdatapilotdescriptor.cxx | 3 | ||||
-rw-r--r-- | test/source/sheet/xfunctiondescriptions.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
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<beans::PropertyValue> aProps2; - aProps2 = xFD->getById(aId1); + uno::Sequence<beans::PropertyValue> aProps2 = xFD->getById(aId1); CPPUNIT_ASSERT_MESSAGE("Received empty FunctionDescriptions from getById()", aProps2.getLength()); for (const auto& aProp : aProps2) |