From ef513fd4b049b214a03fbe6e62a5ea43680a7a9b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 May 2017 10:58:42 +0200 Subject: remove unnecessary use of OString::getStr Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins Reviewed-by: Noel Grandin --- test/source/sheet/xcellrangesquery.cxx | 14 +++++++------- test/source/sheet/xsheetoutline.cxx | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test/source') diff --git a/test/source/sheet/xcellrangesquery.cxx b/test/source/sheet/xcellrangesquery.cxx index 202e17a64b40..16ca44f94b8a 100644 --- a/test/source/sheet/xcellrangesquery.cxx +++ b/test/source/sheet/xcellrangesquery.cxx @@ -28,7 +28,7 @@ void XCellRangesQuery::testQueryColumnDifference() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryColumnDifferences(table::CellAddress(0, 1, 1)); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryColumnDifference: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryColumnDifference: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryColumnDifference", aResult, aExpected); } @@ -38,7 +38,7 @@ void XCellRangesQuery::testQueryContentDifference() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryContentCells(sheet::CellFlags::VALUE); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryContentDifference: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryContentDifference: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryContentDifference", aResult, aExpected); } @@ -48,7 +48,7 @@ void XCellRangesQuery::testQueryEmptyCells() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryEmptyCells(); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryEmptyCells: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryEmptyCells: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryEmptyCells", aResult, aExpected); } @@ -58,7 +58,7 @@ void XCellRangesQuery::testQueryFormulaCells() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryFormulaCells(sheet::CellFlags::FORMULA); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryFormulaCells: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryFormulaCells: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryFormulaCells", aResult, aExpected); } @@ -68,7 +68,7 @@ void XCellRangesQuery::testQueryIntersection() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryIntersection(table::CellRangeAddress(0,3,3,7,7)); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryIntersection: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryIntersection: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryIntersection", aResult, aExpected); } @@ -78,7 +78,7 @@ void XCellRangesQuery::testQueryRowDifference() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryRowDifferences(table::CellAddress(0,1,1)); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryRowDifference: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryRowDifference: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryRowDifference", aResult, aExpected); } @@ -88,7 +88,7 @@ void XCellRangesQuery::testQueryVisibleCells() uno::Reference xCellRangesQuery(init(),UNO_QUERY_THROW); uno::Reference xRanges = xCellRangesQuery->queryVisibleCells(); OUString aResult = xRanges->getRangeAddressesAsString(); - std::cout << "testQueryVisibleCells: Result: " << OUStringToOString(aResult, RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << "testQueryVisibleCells: Result: " << aResult << std::endl; CPPUNIT_ASSERT_EQUAL_MESSAGE("testQueryVisibleCells", aResult, aExpected); } diff --git a/test/source/sheet/xsheetoutline.cxx b/test/source/sheet/xsheetoutline.cxx index 1a03fb7b7613..9153c84204a7 100644 --- a/test/source/sheet/xsheetoutline.cxx +++ b/test/source/sheet/xsheetoutline.cxx @@ -138,7 +138,7 @@ void XSheetOutline::testShowLevel() aSheetOutline->showLevel(2, table::TableOrientation_COLUMNS); - std::cout << " verifiy showLevel col apres" << OUStringToOString(getVisibleAdress(aSheet, "OutlineSheet.A1:Z30"), RTL_TEXTENCODING_UTF8).getStr() << std::endl; + std::cout << " verifiy showLevel col apres" << getVisibleAdress(aSheet, "OutlineSheet.A1:Z30") << std::endl; // verify that level 2 and level 1 are shown --> column 0..3 & column 22..26 // level 3 & 4 are hidden --> column 4..19 -- cgit