summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 13:55:09 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 09:21:39 +0200
commitf34cc90df9e6e7bc7d58a4ed4be71a63f0ec5ae4 (patch)
treef10a9a2847f96d6ef4a5d76239a2daa4dfcd082d /vbahelper
parent1f83c3d560ca7224e81c85b119ef580682ecf876 (diff)
loplugin:passstuffbyref in vbahelper
Change-Id: I09e6ea5cbab5b06dd284a096503b19c15b2136ce
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarhelper.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx
index e6aca6b11f2c..bb945563e95b 100644
--- a/vbahelper/source/vbahelper/vbacommandbarhelper.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarhelper.hxx
@@ -63,9 +63,9 @@ private:
public:
VbaCommandBarHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel ) throw( css::uno::RuntimeException );
- css::uno::Reference< css::frame::XModel > getModel() const { return mxModel; }
+ const css::uno::Reference< css::frame::XModel >& getModel() const { return mxModel; }
- css::uno::Reference< css::container::XNameAccess > getPersistentWindowState() const throw (css::uno::RuntimeException)
+ const css::uno::Reference< css::container::XNameAccess >& getPersistentWindowState() const throw (css::uno::RuntimeException)
{
return m_xWindowState;
}
@@ -76,7 +76,7 @@ public:
css::uno::Reference< css::frame::XLayoutManager > getLayoutManager() throw (css::uno::RuntimeException);
- const OUString getModuleId() const { return maModuleId; }
+ const OUString& getModuleId() const { return maModuleId; }
OUString findToolbarByName( const css::uno::Reference< css::container::XNameAccess >& xNameAccess, const OUString& sName ) throw (css::uno::RuntimeException);
static sal_Int32 findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu = false ) throw (css::uno::RuntimeException);
static OUString generateCustomURL();