summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-13 13:12:33 +0200
committerNoel Grandin <noel@peralex.com>2014-03-13 13:13:38 +0200
commit41776e53c54968881021c25f1173d190cfd2ba5d (patch)
tree82a10d8f6b237879bde8acdc38e0f9e07bbfb87e /cui
parentd575b23c187fb66bbe13c4fe6df8a8cb1ccbc135 (diff)
svtools,svx: prefer passing OUString and OString by reference
Change-Id: Iceb2cbcda9d8ddb4ee00db9365c751e0e5d8b3a6
Diffstat (limited to 'cui')
-rw-r--r--cui/source/factory/dlgfact.cxx4
-rw-r--r--cui/source/factory/dlgfact.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index cf9696bbbcb3..d5bc424f3711 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -578,12 +578,12 @@ bool AbstractSvxHlinkDlgMarkWnd_Impl::ConnectToDialog( bool bDoit )const
return pDlg->ConnectToDialog(bDoit);
}
-void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( OUString aStrURL )
+void AbstractSvxHlinkDlgMarkWnd_Impl::RefreshTree ( const OUString& aStrURL )
{
pDlg->RefreshTree(aStrURL);
}
-void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( OUString aStrMark )
+void AbstractSvxHlinkDlgMarkWnd_Impl::SelectEntry ( const OUString& aStrMark )
{
pDlg->SelectEntry(aStrMark);
}
diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx
index ee41b25021f3..2804ecbc3099 100644
--- a/cui/source/factory/dlgfact.hxx
+++ b/cui/source/factory/dlgfact.hxx
@@ -285,8 +285,8 @@ class AbstractSvxHlinkDlgMarkWnd_Impl : public AbstractSvxHlinkDlgMarkWnd
virtual Size GetSizePixel() const;
virtual bool MoveTo( Point aNewPos ) const;
virtual bool ConnectToDialog( bool bDoit = true )const;
- virtual void RefreshTree ( OUString aStrURL ) ;
- virtual void SelectEntry ( OUString aStrMark );
+ virtual void RefreshTree ( const OUString& aStrURL ) ;
+ virtual void SelectEntry ( const OUString& aStrMark );
virtual sal_uInt16 SetError( sal_uInt16 nError) ;
};