diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 15:37:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 09:21:40 +0200 |
commit | cc2f103744fc5e36a2e583442e41bc6b9d0d0b90 (patch) | |
tree | 447b110388cc02aa2b112375d92a92822a3b805a /sdext/source/presenter/PresenterToolBar.cxx | |
parent | baf34a9e44fbd39c3657cabd22d871bc804ab12d (diff) |
loplugin:passstuffbyref in sdext
Change-Id: I954510b953dab133bcf7b37cf598757b7d8e5fca
Diffstat (limited to 'sdext/source/presenter/PresenterToolBar.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index 220300793c11..203f76ffa5bf 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -72,8 +72,8 @@ namespace { const PresenterTheme::SharedFontDescriptor& rpFont); void SetText (const OUString& rsText); - OUString GetText() const; - PresenterTheme::SharedFontDescriptor GetFont() const; + const OUString& GetText() const; + const PresenterTheme::SharedFontDescriptor& GetFont() const; void Paint ( const Reference<rendering::XCanvas>& rxCanvas, @@ -489,12 +489,12 @@ geometry::RealSize2D PresenterToolBar::GetMinimalSize() return maMinimalSize; } -::rtl::Reference<PresenterController> PresenterToolBar::GetPresenterController() const +const ::rtl::Reference<PresenterController>& PresenterToolBar::GetPresenterController() const { return mpPresenterController; } -Reference<XComponentContext> PresenterToolBar::GetComponentContext() const +const Reference<XComponentContext>& PresenterToolBar::GetComponentContext() const { return mxComponentContext; } @@ -1143,7 +1143,7 @@ void SAL_CALL PresenterToolBarView::disposing() } -::rtl::Reference<PresenterToolBar> PresenterToolBarView::GetPresenterToolBar() const +const ::rtl::Reference<PresenterToolBar>& PresenterToolBarView::GetPresenterToolBar() const { return mpToolBar; } @@ -1720,12 +1720,12 @@ void Text::SetText (const OUString& rsText) msText = rsText; } -OUString Text::GetText() const +const OUString& Text::GetText() const { return msText; } -PresenterTheme::SharedFontDescriptor Text::GetFont() const +const PresenterTheme::SharedFontDescriptor& Text::GetFont() const { return mpFont; } |