diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/source/sheet/datapilotfield.cxx | 6 | ||||
-rw-r--r-- | test/source/sheet/xnamedrange.cxx | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/source/sheet/datapilotfield.cxx b/test/source/sheet/datapilotfield.cxx index 8a3399c145ad..bf25ba89b384 100644 --- a/test/source/sheet/datapilotfield.cxx +++ b/test/source/sheet/datapilotfield.cxx @@ -36,7 +36,7 @@ void DataPilotField::testSortInfo() uno::Reference< beans::XPropertySet> xPropSet(init(),UNO_QUERY_THROW); sheet::DataPilotFieldSortInfo aSortInfoValue; OUString aSortInfo("SortInfo"); - aSortInfoValue.Field = OUString("Col1"); + aSortInfoValue.Field = "Col1"; aSortInfoValue.IsAscending = false; aSortInfoValue.Mode = sheet::DataPilotFieldSortMode::MANUAL; uno::Any xValue; @@ -102,7 +102,7 @@ void DataPilotField::testAutoShowInfo() { uno::Reference< beans::XPropertySet > xPropSet(init(),UNO_QUERY_THROW); sheet::DataPilotFieldAutoShowInfo aAutoShowInfoValue; - aAutoShowInfoValue.DataField = OUString("Col1"); + aAutoShowInfoValue.DataField = "Col1"; aAutoShowInfoValue.IsEnabled = true; OUString aAutoShowInfo("AutoShowInfo"); uno::Any xValue; @@ -135,7 +135,7 @@ void DataPilotField::testReference() { uno::Reference< beans::XPropertySet > xPropSet(init(),UNO_QUERY_THROW); sheet::DataPilotFieldReference aReferenceValue; - aReferenceValue.ReferenceField = OUString("Col1"); + aReferenceValue.ReferenceField = "Col1"; aReferenceValue.ReferenceItemType = sheet::DataPilotFieldReferenceItemType::NAMED; OUString aReference("Reference"); uno::Any xValue; diff --git a/test/source/sheet/xnamedrange.cxx b/test/source/sheet/xnamedrange.cxx index 32012f68a62c..ffcdf13612ca 100644 --- a/test/source/sheet/xnamedrange.cxx +++ b/test/source/sheet/xnamedrange.cxx @@ -50,19 +50,19 @@ void XNamedRange::testSetContent() OUString aExpectedContent; // test a cell - aExpectedContent = OUString("D1"); + aExpectedContent = "D1"; xNamedRange->setContent(aExpectedContent); CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 after SetContent a cell", xNamedRange->getContent().equals(aExpectedContent)); // test a cellrange - aExpectedContent = OUString("D1:D10"); + aExpectedContent = "D1:D10"; xNamedRange->setContent(aExpectedContent); CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 after SetContent a cellrange", xNamedRange->getContent().equals(aExpectedContent)); // test a formula - aExpectedContent = OUString("=D10"); + aExpectedContent = "=D10"; xNamedRange->setContent(aExpectedContent); - aExpectedContent = OUString("D10"); + aExpectedContent = "D10"; CPPUNIT_ASSERT_MESSAGE("Wrong expected content for initial1 after SetContent a formula", xNamedRange->getContent().equals(aExpectedContent)); } |