diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-21 12:14:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-25 13:53:21 +0200 |
commit | 4583911575edf98ccd5b15af8eafa6a3a7b64034 (patch) | |
tree | f3f33e53c45dd870f19e7e42db9bb5b4bf1f23bf /test | |
parent | 1942182a3d1817bc539229d7fda3af69f7e295b8 (diff) |
improve loplugin:simplifyconstruct
Change-Id: If863d28c6db470faa0d22273020888d4219e069e
Reviewed-on: https://gerrit.libreoffice.org/74559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/xnamedrange.cxx | 2 | ||||
-rw-r--r-- | test/source/sheet/xnamedranges.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/source/sheet/xnamedrange.cxx b/test/source/sheet/xnamedrange.cxx index cad13759292d..1e63aedb3f80 100644 --- a/test/source/sheet/xnamedrange.cxx +++ b/test/source/sheet/xnamedrange.cxx @@ -110,7 +110,7 @@ void XNamedRange::testSetReferencePosition() { uno::Reference< sheet::XNamedRange > xNamedRange = getNamedRange("initial1"); - table::CellAddress aBaseAddress = table::CellAddress(1,2,3); + table::CellAddress aBaseAddress(1,2,3); xNamedRange->setReferencePosition(aBaseAddress); diff --git a/test/source/sheet/xnamedranges.cxx b/test/source/sheet/xnamedranges.cxx index 036f5b75b00f..2017c7c849ac 100644 --- a/test/source/sheet/xnamedranges.cxx +++ b/test/source/sheet/xnamedranges.cxx @@ -43,7 +43,7 @@ void XNamedRanges::testAddNewByName() uno::Reference<container::XNameAccess> xNamedRangesNameAccess(getXNamedRanges(1), UNO_QUERY_THROW); - table::CellAddress aBaseAddress = table::CellAddress(0, 0, 0); + table::CellAddress aBaseAddress(0, 0, 0); sal_Int32 nType = 0; OUString const aContent1("D1"); @@ -87,7 +87,7 @@ void XNamedRanges::testAddNewFromTitles() uno::Reference<container::XIndexAccess> xNamedRangesIndex(xNamedRanges, UNO_QUERY_THROW); uno::Reference<container::XNameAccess> xNamedRangesNameAccess(xNamedRanges, UNO_QUERY_THROW); - table::CellRangeAddress aCellRangeAddress = table::CellRangeAddress(1, 0, 0, 3, 3); + table::CellRangeAddress aCellRangeAddress(1, 0, 0, 3, 3); OUString aString; uno::Reference<table::XCell> xCell; @@ -173,7 +173,7 @@ void XNamedRanges::testRemoveByName() void XNamedRanges::testOutputList() { - table::CellAddress aCellAddress = table::CellAddress(0, 2, 0); + table::CellAddress aCellAddress(0, 2, 0); uno::Reference<sheet::XNamedRanges> xNamedRanges(init(), UNO_QUERY_THROW); uno::Reference<container::XIndexAccess> xNamedRangesIndex(init(), UNO_QUERY_THROW); sal_Int32 nElementsCount = xNamedRangesIndex->getCount(); |