From e724f245e9652230d4c1f58c353be150006affcd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Aug 2019 13:41:58 +0200 Subject: loplugin:constmethod in test Change-Id: I15aa90d962b9d428a911f4b47a06d55318b42ba4 Reviewed-on: https://gerrit.libreoffice.org/77953 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/test/sheet/xcellrangereferrer.hxx | 2 +- include/test/sheet/xformulaquery.hxx | 2 +- include/test/table/xtablecolumns.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/test') diff --git a/include/test/sheet/xcellrangereferrer.hxx b/include/test/sheet/xcellrangereferrer.hxx index f840a6bd1355..949f6b12eb7e 100644 --- a/include/test/sheet/xcellrangereferrer.hxx +++ b/include/test/sheet/xcellrangereferrer.hxx @@ -24,7 +24,7 @@ public: virtual css::uno::Reference< css::uno::XInterface > init() = 0; void setCellRange(css::table::CellRangeAddress aCellRange) { m_aCellRange = aCellRange; } - const css::table::CellRangeAddress & getCellRange() { return m_aCellRange; } + const css::table::CellRangeAddress & getCellRange() const { return m_aCellRange; } void testGetReferredCells(); protected: diff --git a/include/test/sheet/xformulaquery.hxx b/include/test/sheet/xformulaquery.hxx index 7beb944e192c..662bc6c90fc6 100644 --- a/include/test/sheet/xformulaquery.hxx +++ b/include/test/sheet/xformulaquery.hxx @@ -35,7 +35,7 @@ public: virtual css::uno::Reference init() = 0; virtual css::uno::Reference getXSpreadsheet() = 0; void setXCell(css::uno::Reference xCell) { m_xCell = xCell; } - css::uno::Reference const& getXCell() { return m_xCell; } + css::uno::Reference const& getXCell() const { return m_xCell; } void testQueryDependents(); void testQueryPrecedents(); diff --git a/include/test/table/xtablecolumns.hxx b/include/test/table/xtablecolumns.hxx index 204fb2860aa2..169eac9dbc77 100644 --- a/include/test/table/xtablecolumns.hxx +++ b/include/test/table/xtablecolumns.hxx @@ -25,7 +25,7 @@ class OOO_DLLPUBLIC_TEST XTableColumns public: virtual css::uno::Reference init() = 0; - void setXSpreadsheet(css::uno::Reference& r_xSheet) + void setXSpreadsheet(const css::uno::Reference& r_xSheet) { m_xSheet = r_xSheet; } -- cgit