summaryrefslogtreecommitdiff
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
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>
-rw-r--r--include/test/sheet/xcellrangereferrer.hxx2
-rw-r--r--include/test/sheet/xformulaquery.hxx2
-rw-r--r--include/test/table/xtablecolumns.hxx2
-rw-r--r--include/unotest/bootstrapfixturebase.hxx4
4 files changed, 5 insertions, 5 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;
}
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx
index 0a967d34d736..85f270b02c2c 100644
--- a/include/unotest/bootstrapfixturebase.hxx
+++ b/include/unotest/bootstrapfixturebase.hxx
@@ -59,9 +59,9 @@ public:
virtual ~BootstrapFixtureBase() override;
const css::uno::Reference<css::uno::XComponentContext>&
- getComponentContext() { return m_xContext; }
+ getComponentContext() const { return m_xContext; }
const css::uno::Reference<css::lang::XMultiServiceFactory>&
- getMultiServiceFactory() { return m_xSFactory; }
+ getMultiServiceFactory() const { return m_xSFactory; }
virtual void setUp() override;
virtual void tearDown() override;