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/source/xml | |
parent | d575b23c187fb66bbe13c4fe6df8a8cb1ccbc135 (diff) |
svtools,svx: prefer passing OUString and OString by reference
Change-Id: Iceb2cbcda9d8ddb4ee00db9365c751e0e5d8b3a6
Diffstat (limited to 'svx/source/xml')
-rw-r--r-- | svx/source/xml/xmleohlp.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 ) |