diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-13 13:12:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-13 13:13:38 +0200 |
commit | 41776e53c54968881021c25f1173d190cfd2ba5d (patch) | |
tree | 82a10d8f6b237879bde8acdc38e0f9e07bbfb87e /svx | |
parent | d575b23c187fb66bbe13c4fe6df8a8cb1ccbc135 (diff) |
svtools,svx: prefer passing OUString and OString by reference
Change-Id: Iceb2cbcda9d8ddb4ee00db9365c751e0e5d8b3a6
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 2 | ||||
-rw-r--r-- | svx/source/gengal/gengal.cxx | 4 | ||||
-rw-r--r-- | svx/source/sidebar/nbdtmg.cxx | 4 | ||||
-rw-r--r-- | svx/source/toolbars/fontworkbar.cxx | 2 | ||||
-rw-r--r-- | svx/source/xml/xmleohlp.cxx | 5 |
5 files changed, 9 insertions, 8 deletions
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx index f77314abd58f..4b2aaf43d311 100644 --- a/svx/source/accessibility/DescriptionGenerator.cxx +++ b/svx/source/accessibility/DescriptionGenerator.cxx @@ -88,7 +88,7 @@ void DescriptionGenerator::Initialize (sal_Int32 nResourceId) -void DescriptionGenerator::Initialize (OUString sPrefix) +void DescriptionGenerator::Initialize (const OUString& sPrefix) { msDescription = sPrefix; if (mxSet.is()) diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx index 1df2f62395ea..4cb4b147a239 100644 --- a/svx/source/gengal/gengal.cxx +++ b/svx/source/gengal/gengal.cxx @@ -69,8 +69,8 @@ void disposeGallery( Gallery* pGallery ) delete pGallery; } -static void createTheme( OUString aThemeName, OUString aGalleryURL, - OUString aDestDir, std::vector<INetURLObject> &rFiles, +static void createTheme( const OUString& aThemeName, const OUString& aGalleryURL, + const OUString& aDestDir, std::vector<INetURLObject> &rFiles, bool bRelativeURLs ) { Gallery* pGallery; diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx index cf2ad6e55fda..1b6458c67f2e 100644 --- a/svx/source/sidebar/nbdtmg.cxx +++ b/svx/source/sidebar/nbdtmg.cxx @@ -173,7 +173,7 @@ OUString NBOTypeMgrBase::GetBulCharFmtName() { return aNumCharFmtName; } -void NBOTypeMgrBase::ImplLoad(OUString filename) +void NBOTypeMgrBase::ImplLoad(const OUString& filename) { bIsLoading = true; SfxMapUnit eOldCoreUnit=eCoreUnit; @@ -213,7 +213,7 @@ void NBOTypeMgrBase::ImplLoad(OUString filename) eCoreUnit = eOldCoreUnit; bIsLoading = false; } -void NBOTypeMgrBase::ImplStore(OUString filename) +void NBOTypeMgrBase::ImplStore(const OUString& filename) { if (bIsLoading) return; SfxMapUnit eOldCoreUnit=eCoreUnit; diff --git a/svx/source/toolbars/fontworkbar.cxx b/svx/source/toolbars/fontworkbar.cxx index 320eb29864a1..ab5693244d77 100644 --- a/svx/source/toolbars/fontworkbar.cxx +++ b/svx/source/toolbars/fontworkbar.cxx @@ -337,7 +337,7 @@ static void impl_execute( SdrView*, SfxRequest& rReq, SdrCustomShapeGeometryItem #include <svx/fmpage.hxx> #include <svl/itempool.hxx> -void GetGeometryForCustomShape( SdrCustomShapeGeometryItem& rGeometryItem, const OUString rCustomShape ) +void GetGeometryForCustomShape( SdrCustomShapeGeometryItem& rGeometryItem, const OUString& rCustomShape ) { const OUString sType( "Type" ); diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx index cc4c7f744662..2eff25cd2a00 100644 --- a/svx/source/xml/xmleohlp.cxx +++ b/svx/source/xml/xmleohlp.cxx @@ -177,11 +177,12 @@ void SAL_CALL SvXMLEmbeddedObjectHelper::disposing() } -void SvXMLEmbeddedObjectHelper::splitObjectURL(OUString aURLNoPar, +void SvXMLEmbeddedObjectHelper::splitObjectURL(const OUString& _aURLNoPar, OUString& rContainerStorageName, OUString& rObjectStorageName) { - DBG_ASSERT( '#' != aURLNoPar[0], "invalid object URL" ); + DBG_ASSERT( '#' != _aURLNoPar[0], "invalid object URL" ); + OUString aURLNoPar = _aURLNoPar; sal_Int32 _nPos = aURLNoPar.lastIndexOf( '/' ); if( -1 == _nPos ) |