diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-24 11:22:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-28 10:17:47 +0000 |
commit | 198c41c4fe8be4ce8a6ddab43ae0c5f17a4889ac (patch) | |
tree | 041d55126e9770b81f68fadfaaa69e82313786b3 /sc/qa | |
parent | d3981b3e8c021ee03a2ca7103a73e56cca18df81 (diff) |
new loplugin unoany
Change-Id: I5d6c4a67cb2a09e7cd5bd620c6b262d188701b89
Reviewed-on: https://gerrit.libreoffice.org/34714
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/extras/sccellrangeobj.cxx | 2 | ||||
-rw-r--r-- | sc/qa/extras/sccondformats.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/qa/extras/sccellrangeobj.cxx b/sc/qa/extras/sccellrangeobj.cxx index 95f94d52b81e..40a3ebc638c1 100644 --- a/sc/qa/extras/sccellrangeobj.cxx +++ b/sc/qa/extras/sccellrangeobj.cxx @@ -127,7 +127,7 @@ void ScCellRangeObj::testSortOOB() aSort[0].SortAscending = true; aProps[0].Name = "SortFields"; - aProps[0].Value = uno::makeAny(aSort); + aProps[0].Value <<= aSort; xSortable->sort(aProps); } diff --git a/sc/qa/extras/sccondformats.cxx b/sc/qa/extras/sccondformats.cxx index 0f8119995929..8fc4eaca3916 100644 --- a/sc/qa/extras/sccondformats.cxx +++ b/sc/qa/extras/sccondformats.cxx @@ -81,15 +81,15 @@ void ScConditionalFormatTest::testCondFormat() uno::Sequence< beans::PropertyValue > aPropertyValueList(5); aPropertyValueList[0].Name = SC_UNONAME_STYLENAME; - aPropertyValueList[0].Value = uno::makeAny<OUString>("Result2"); + aPropertyValueList[0].Value <<= OUString("Result2"); aPropertyValueList[1].Name = SC_UNONAME_FORMULA1; - aPropertyValueList[1].Value = uno::makeAny<OUString>("$Sheet1.$B$2"); + aPropertyValueList[1].Value <<= OUString("$Sheet1.$B$2"); aPropertyValueList[2].Name = SC_UNONAME_FORMULA2; - aPropertyValueList[2].Value = uno::makeAny<OUString>("$Sheet1.$A$2"); + aPropertyValueList[2].Value <<= OUString("$Sheet1.$A$2"); aPropertyValueList[3].Name = SC_UNONAME_OPERATOR; aPropertyValueList[3].Value <<= sheet::ConditionOperator_EQUAL; aPropertyValueList[4].Name = SC_UNONAME_SOURCEPOS; - aPropertyValueList[4].Value = uno::makeAny(table::CellAddress(0, 0, 16)); + aPropertyValueList[4].Value <<= table::CellAddress(0, 0, 16); xSheetConditionalEntries->addNew(aPropertyValueList); CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xSheetConditionalEntries->getCount()); xProps->setPropertyValue(SC_UNONAME_CONDFMT, uno::makeAny(xSheetConditionalEntries)); |