summaryrefslogtreecommitdiff
path: root/include/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 03:32:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 09:05:31 +0200
commitf04bd7975292d297b72e8bb23aa74a2a5198aa23 (patch)
tree6cda3006e60922154b1ec04fb216c90244dc28d3 /include/vbahelper
parente7a1d057c414b78fdd685f1de0008efc820bfa51 (diff)
loplugin:constmethod in vbahelper
Change-Id: I40a59224286cb1eaece58f5f52b26f9191171be8 Reviewed-on: https://gerrit.libreoffice.org/79581 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vbahelper')
-rw-r--r--include/vbahelper/vbadocumentbase.hxx2
-rw-r--r--include/vbahelper/vbahelper.hxx2
-rw-r--r--include/vbahelper/vbawindowbase.hxx6
3 files changed, 5 insertions, 5 deletions
diff --git a/include/vbahelper/vbadocumentbase.hxx b/include/vbahelper/vbadocumentbase.hxx
index d868dae2c96f..7ea44b5e0814 100644
--- a/include/vbahelper/vbadocumentbase.hxx
+++ b/include/vbahelper/vbadocumentbase.hxx
@@ -51,7 +51,7 @@ protected:
css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::uno::XInterface > mxVBProject;
protected:
- const css::uno::Reference< css::frame::XModel >& getModel() { return mxModel; }
+ const css::uno::Reference< css::frame::XModel >& getModel() const { return mxModel; }
public:
VbaDocumentBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,
css::uno::Reference< css::frame::XModel > const & xModel );
diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx
index 379e0f61dc93..f32498ff0451 100644
--- a/include/vbahelper/vbahelper.hxx
+++ b/include/vbahelper/vbahelper.hxx
@@ -147,7 +147,7 @@ public:
Millimeter(double mm);
void setInPoints(double points) ;
- double getInHundredthsOfOneMillimeter();
+ double getInHundredthsOfOneMillimeter() const;
static sal_Int32 getInHundredthsOfOneMillimeter(double points);
static double getInPoints(int _hmm);
};
diff --git a/include/vbahelper/vbawindowbase.hxx b/include/vbahelper/vbawindowbase.hxx
index 64f70b0edf35..9b0c31e65e21 100644
--- a/include/vbahelper/vbawindowbase.hxx
+++ b/include/vbahelper/vbawindowbase.hxx
@@ -80,11 +80,11 @@ public:
protected:
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::frame::XController > getController();
+ css::uno::Reference< css::frame::XController > getController() const;
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::awt::XWindow > getWindow();
+ css::uno::Reference< css::awt::XWindow > getWindow() const;
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::awt::XWindow2 > getWindow2();
+ css::uno::Reference< css::awt::XWindow2 > getWindow2() const;
css::uno::Reference< css::frame::XModel > m_xModel;