diff options
-rw-r--r-- | include/test/sheet/xdatapilotdescriptor.hxx | 4 | ||||
-rw-r--r-- | include/test/sheet/xdatapilottable2.hxx | 8 | ||||
-rw-r--r-- | include/test/sheet/xspreadsheets2.hxx | 2 | ||||
-rw-r--r-- | include/test/sheet/xstyleloader.hxx | 2 | ||||
-rw-r--r-- | include/test/unoapi_test.hxx | 2 | ||||
-rw-r--r-- | test/source/sheet/xdatapilotdescriptor.cxx | 4 | ||||
-rw-r--r-- | test/source/sheet/xdatapilottable2.cxx | 10 | ||||
-rw-r--r-- | test/source/sheet/xspreadsheets2.cxx | 2 | ||||
-rw-r--r-- | test/source/sheet/xstyleloader.cxx | 2 | ||||
-rw-r--r-- | test/source/unoapi_test.cxx | 2 |
10 files changed, 19 insertions, 19 deletions
diff --git a/include/test/sheet/xdatapilotdescriptor.hxx b/include/test/sheet/xdatapilotdescriptor.hxx index 435049de05e2..9186b52ebb8f 100644 --- a/include/test/sheet/xdatapilotdescriptor.hxx +++ b/include/test/sheet/xdatapilotdescriptor.hxx @@ -39,9 +39,9 @@ protected: ~XDataPilotDescriptor() {} private: - static void testGetDataPilotFields_Impl( css::uno::Reference< css::sheet::XDataPilotDescriptor > xDescr ); + static void testGetDataPilotFields_Impl( css::uno::Reference< css::sheet::XDataPilotDescriptor > const & xDescr ); - static void checkName( css::uno::Reference< css::container::XIndexAccess > xIndex, sal_Int32 nIndex ); + static void checkName( css::uno::Reference< css::container::XIndexAccess > const & xIndex, sal_Int32 nIndex ); static std::vector<OUString> maFieldNames; }; diff --git a/include/test/sheet/xdatapilottable2.hxx b/include/test/sheet/xdatapilottable2.hxx index a67f5c4aa20b..8933379fb5c2 100644 --- a/include/test/sheet/xdatapilottable2.hxx +++ b/include/test/sheet/xdatapilottable2.hxx @@ -38,11 +38,11 @@ public: protected: private: - static bool checkDrillDownSheetContent(css::uno::Reference< css::sheet::XSpreadsheet >, const css::uno::Sequence< css::uno::Sequence < css::uno::Any > >& aData); + static bool checkDrillDownSheetContent(css::uno::Reference< css::sheet::XSpreadsheet > const & xSheet, const css::uno::Sequence< css::uno::Sequence < css::uno::Any > >& aData); - void getOutputRanges(css::uno::Reference< css::sheet::XDataPilotTable2 >); - void buildDataFields(css::uno::Reference< css::sheet::XDataPilotTable2 >); - void buildResultCells(css::uno::Reference< css::sheet::XDataPilotTable2 >); + void getOutputRanges(css::uno::Reference< css::sheet::XDataPilotTable2 > const &); + void buildDataFields(css::uno::Reference< css::sheet::XDataPilotTable2 > const &); + void buildResultCells(css::uno::Reference< css::sheet::XDataPilotTable2 > const &); std::vector< css::table::CellAddress > maResultCells; std::vector< sal_Int32 > maDataFieldDims; diff --git a/include/test/sheet/xspreadsheets2.hxx b/include/test/sheet/xspreadsheets2.hxx index 60774b8c8fc8..bb00b95497db 100644 --- a/include/test/sheet/xspreadsheets2.hxx +++ b/include/test/sheet/xspreadsheets2.hxx @@ -47,7 +47,7 @@ protected: private: css::uno::Reference< css::sheet::XSpreadsheetDocument> getDoc(const OUString&, css::uno::Reference< css::lang::XComponent >&); - static css::uno::Reference< css::sheet::XNamedRanges> getNamedRanges(css::uno::Reference< css::sheet::XSpreadsheetDocument >); + static css::uno::Reference< css::sheet::XNamedRanges> getNamedRanges(css::uno::Reference< css::sheet::XSpreadsheetDocument > const &); void importSheetToCopy(); bool isExternalReference(const OUString& aDestContent, const OUString& aSrcContent ); diff --git a/include/test/sheet/xstyleloader.hxx b/include/test/sheet/xstyleloader.hxx index 984cde804bf3..02ec28e5bf0e 100644 --- a/include/test/sheet/xstyleloader.hxx +++ b/include/test/sheet/xstyleloader.hxx @@ -33,7 +33,7 @@ public: void testLoadStylesFromDocument(); private: - static void checkStyleProperties(css::uno::Reference< css::style::XStyleFamiliesSupplier > xFamilySupplier); + static void checkStyleProperties(css::uno::Reference< css::style::XStyleFamiliesSupplier > const & xFamilySupplier); protected: ~XStyleLoader() {} diff --git a/include/test/unoapi_test.hxx b/include/test/unoapi_test.hxx index 870f1402ce2b..d728175eaa39 100644 --- a/include/test/unoapi_test.hxx +++ b/include/test/unoapi_test.hxx @@ -29,7 +29,7 @@ public: virtual void tearDown() override; protected: - void closeDocument( css::uno::Reference< css::lang::XComponent > xDocument ); + void closeDocument( css::uno::Reference< css::lang::XComponent > const & xDocument ); private: diff --git a/test/source/sheet/xdatapilotdescriptor.cxx b/test/source/sheet/xdatapilotdescriptor.cxx index d8f409f63205..7fd5b4f772ae 100644 --- a/test/source/sheet/xdatapilotdescriptor.cxx +++ b/test/source/sheet/xdatapilotdescriptor.cxx @@ -67,7 +67,7 @@ void XDataPilotDescriptor::testGetFilterDescriptor() CPPUNIT_ASSERT(xSheetFilterDescr.is()); } -void XDataPilotDescriptor::testGetDataPilotFields_Impl( uno::Reference< sheet::XDataPilotDescriptor > xDescr) +void XDataPilotDescriptor::testGetDataPilotFields_Impl( uno::Reference< sheet::XDataPilotDescriptor > const & xDescr) { //this method should only be called once but needs to be called before any of the other tests static bool bCalled = false; @@ -185,7 +185,7 @@ void XDataPilotDescriptor::testGetHiddenFields() checkName( xIndex, 3 ); } -void XDataPilotDescriptor::checkName( uno::Reference< container::XIndexAccess > xIndex, sal_Int32 nIndex ) +void XDataPilotDescriptor::checkName( uno::Reference< container::XIndexAccess > const & xIndex, sal_Int32 nIndex ) { CPPUNIT_ASSERT(xIndex.is()); CPPUNIT_ASSERT(maFieldNames.size() >= static_cast<size_t>(nIndex)); diff --git a/test/source/sheet/xdatapilottable2.cxx b/test/source/sheet/xdatapilottable2.cxx index fad98fd63036..7be89cbd6883 100644 --- a/test/source/sheet/xdatapilottable2.cxx +++ b/test/source/sheet/xdatapilottable2.cxx @@ -185,7 +185,7 @@ void XDataPilotTable2::testInsertDrillDownSheet() } } -void XDataPilotTable2::buildResultCells( uno::Reference< sheet::XDataPilotTable2 > xDPTable) +void XDataPilotTable2::buildResultCells( uno::Reference< sheet::XDataPilotTable2 > const & xDPTable) { getOutputRanges(xDPTable); maResultCells.clear(); @@ -208,14 +208,14 @@ void XDataPilotTable2::buildResultCells( uno::Reference< sheet::XDataPilotTable2 } } -void XDataPilotTable2::getOutputRanges( uno::Reference< sheet::XDataPilotTable2 > xDPTable) +void XDataPilotTable2::getOutputRanges( uno::Reference< sheet::XDataPilotTable2 > const & xDPTable) { maRangeWhole = xDPTable->getOutputRangeByType(sheet::DataPilotOutputRangeType::WHOLE); maRangeTable = xDPTable->getOutputRangeByType(sheet::DataPilotOutputRangeType::TABLE); maRangeResult = xDPTable->getOutputRangeByType(sheet::DataPilotOutputRangeType::RESULT); } -void XDataPilotTable2::buildDataFields( uno::Reference< sheet::XDataPilotTable2 > xDPTable ) +void XDataPilotTable2::buildDataFields( uno::Reference< sheet::XDataPilotTable2 > const & xDPTable ) { uno::Reference< sheet::XDataPilotDescriptor > xDesc(xDPTable, UNO_QUERY_THROW); uno::Reference< container::XIndexAccess > xIndex(xDesc->getDataPilotFields(), UNO_QUERY_THROW); @@ -237,7 +237,7 @@ void XDataPilotTable2::buildDataFields( uno::Reference< sheet::XDataPilotTable2 namespace { -table::CellAddress getLastUsedCellAddress( uno::Reference< sheet::XSpreadsheet > xSheet, sal_Int32 nCol, sal_Int32 nRow ) +table::CellAddress getLastUsedCellAddress( uno::Reference< sheet::XSpreadsheet > const & xSheet, sal_Int32 nCol, sal_Int32 nRow ) { uno::Reference< sheet::XSheetCellRange > xSheetRange( xSheet->getCellRangeByPosition(nCol, nRow, nCol, nRow), UNO_QUERY_THROW); uno::Reference< sheet::XSheetCellCursor > xCursor = xSheet->createCursorByRange(xSheetRange); @@ -250,7 +250,7 @@ table::CellAddress getLastUsedCellAddress( uno::Reference< sheet::XSpreadsheet > } -bool XDataPilotTable2::checkDrillDownSheetContent(uno::Reference< sheet::XSpreadsheet > xSheet, const uno::Sequence< uno::Sequence< Any > >& aData) +bool XDataPilotTable2::checkDrillDownSheetContent(uno::Reference< sheet::XSpreadsheet > const & xSheet, const uno::Sequence< uno::Sequence< Any > >& aData) { table::CellAddress aLastCell = getLastUsedCellAddress(xSheet, 0, 0); CPPUNIT_ASSERT(aData.getLength() > 0); diff --git a/test/source/sheet/xspreadsheets2.cxx b/test/source/sheet/xspreadsheets2.cxx index 75332d5b0ee4..2c831c447174 100644 --- a/test/source/sheet/xspreadsheets2.cxx +++ b/test/source/sheet/xspreadsheets2.cxx @@ -293,7 +293,7 @@ uno::Reference< sheet::XSpreadsheetDocument> XSpreadsheets2::getDoc(const OUStri return xDoc; } -uno::Reference< sheet::XNamedRanges> XSpreadsheets2::getNamedRanges(uno::Reference< sheet::XSpreadsheetDocument> xDoc) +uno::Reference< sheet::XNamedRanges> XSpreadsheets2::getNamedRanges(uno::Reference< sheet::XSpreadsheetDocument> const & xDoc) { uno::Reference< beans::XPropertySet > xPropSet (xDoc, UNO_QUERY_THROW); OUString NamedRangesPropertyString("NamedRanges"); diff --git a/test/source/sheet/xstyleloader.cxx b/test/source/sheet/xstyleloader.cxx index 01ed053b712b..717f3e4a90f0 100644 --- a/test/source/sheet/xstyleloader.cxx +++ b/test/source/sheet/xstyleloader.cxx @@ -64,7 +64,7 @@ void XStyleLoader::testLoadStylesFromDocument() } -void XStyleLoader::checkStyleProperties( uno::Reference< style::XStyleFamiliesSupplier > xFamilySupplier) +void XStyleLoader::checkStyleProperties( uno::Reference< style::XStyleFamiliesSupplier > const & xFamilySupplier) { // check if targetDocument has myStyle uno::Reference< container::XNameAccess > xFamilies(xFamilySupplier->getStyleFamilies(), UNO_QUERY_THROW); diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx index ece8785b6ea5..c66d487da5c7 100644 --- a/test/source/unoapi_test.cxx +++ b/test/source/unoapi_test.cxx @@ -39,7 +39,7 @@ void UnoApiTest::createFileURL(const OUString& aFileBase, OUString& rFilePath) rFilePath = m_directories.getSrcRootURL() + m_aBaseString + "/" + aFileBase; } -void UnoApiTest::closeDocument( uno::Reference< lang::XComponent > xDocument ) +void UnoApiTest::closeDocument( uno::Reference< lang::XComponent > const & xDocument ) { uno::Reference< util::XCloseable > xCloseable(xDocument, UNO_QUERY_THROW); xCloseable->close(false); |