Kaydet (Commit) f34cc90d authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:passstuffbyref in vbahelper

Change-Id: I09e6ea5cbab5b06dd284a096503b19c15b2136ce
üst 1f83c3d5
...@@ -31,7 +31,7 @@ protected: ...@@ -31,7 +31,7 @@ protected:
css::uno::Reference< css::frame::XModel > mxModel; css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::uno::XInterface > mxVBProject; css::uno::Reference< css::uno::XInterface > mxVBProject;
protected: protected:
css::uno::Reference< css::frame::XModel > getModel() { return mxModel; } const css::uno::Reference< css::frame::XModel >& getModel() { return mxModel; }
public: public:
VbaDocumentBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, VbaDocumentBase( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext,
css::uno::Reference< css::frame::XModel > xModel ); css::uno::Reference< css::frame::XModel > xModel );
......
...@@ -63,9 +63,9 @@ private: ...@@ -63,9 +63,9 @@ private:
public: public:
VbaCommandBarHelper( const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::frame::XModel >& xModel ) throw( css::uno::RuntimeException ); 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; return m_xWindowState;
} }
...@@ -76,7 +76,7 @@ public: ...@@ -76,7 +76,7 @@ public:
css::uno::Reference< css::frame::XLayoutManager > getLayoutManager() throw (css::uno::RuntimeException); 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); 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 sal_Int32 findControlByName( const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess, const OUString& sName, bool bMenu = false ) throw (css::uno::RuntimeException);
static OUString generateCustomURL(); static OUString generateCustomURL();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment