summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 13:41:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 15:46:24 +0200
commite724f245e9652230d4c1f58c353be150006affcd (patch)
treeaf4fe0d21add55b557dbc54385ac82ef7290b097 /include/test
parent8a82dca5bd43080f0f5597b915d1433b1c0f141a (diff)
loplugin:constmethod in test
Change-Id: I15aa90d962b9d428a911f4b47a06d55318b42ba4 Reviewed-on: https://gerrit.libreoffice.org/77953 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/test')
-rw-r--r--include/test/sheet/xcellrangereferrer.hxx2
-rw-r--r--include/test/sheet/xformulaquery.hxx2
-rw-r--r--include/test/table/xtablecolumns.hxx2
3 files changed, 3 insertions, 3 deletions
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<css::uno::XInterface> init() = 0;
virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0;
void setXCell(css::uno::Reference<css::table::XCell> xCell) { m_xCell = xCell; }
- css::uno::Reference<css::table::XCell> const& getXCell() { return m_xCell; }
+ css::uno::Reference<css::table::XCell> 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<css::uno::XInterface> init() = 0;
- void setXSpreadsheet(css::uno::Reference<css::sheet::XSpreadsheet>& r_xSheet)
+ void setXSpreadsheet(const css::uno::Reference<css::sheet::XSpreadsheet>& r_xSheet)
{
m_xSheet = r_xSheet;
}