summaryrefslogtreecommitdiffstats
path: root/include/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 10:44:57 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:51 +0200
commit9fce680e27e57f0539f55c7ecb5c8e1d96029267 (patch)
tree36475df8317c32dd9db79d0eafe9a50df7e1018e /include/dbaccess
parentloplugin:passstuffbyref in connectivity (diff)
downloadcore-9fce680e27e57f0539f55c7ecb5c8e1d96029267.tar.gz
core-9fce680e27e57f0539f55c7ecb5c8e1d96029267.zip
loplugin:passstuffbyref in dbaccess
Change-Id: Ice52ebbfeca45c8587fdcd0d3dea5c02c7de27e3
Diffstat (limited to 'include/dbaccess')
-rw-r--r--include/dbaccess/dataview.hxx2
-rw-r--r--include/dbaccess/genericcontroller.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/dbaccess/dataview.hxx b/include/dbaccess/dataview.hxx
index b73831c9f33a..dffc73bb7abd 100644
--- a/include/dbaccess/dataview.hxx
+++ b/include/dbaccess/dataview.hxx
@@ -60,7 +60,7 @@ namespace dbaui
inline IController& getCommandController() const { return *m_xController.get(); }
- css::uno::Reference< css::uno::XComponentContext > getORB() { return m_xContext;}
+ const css::uno::Reference< css::uno::XComponentContext >& getORB() { return m_xContext;}
// the default implementation simply calls resizeAll( GetSizePixel() )
virtual void Resize() override;
diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx
index 85a49a73da23..75b50bee42ab 100644
--- a/include/dbaccess/genericcontroller.hxx
+++ b/include/dbaccess/genericcontroller.hxx
@@ -404,7 +404,7 @@ namespace dbaui
DECL_LINK_TYPED(OnAsyncCloseTask, void*, void);
public:
- css::uno::Reference< css::uno::XComponentContext > getORB() const { return m_xContext; }
+ const css::uno::Reference< css::uno::XComponentContext >& getORB() const { return m_xContext; }
ODataView* getView() const { return m_pView; }
void setView( const VclPtr<ODataView>& i_rView );
void clearView();