diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-14 07:46:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-14 07:47:01 +0200 |
commit | 358be80f65d335910a4add147cd15e35d3505afd (patch) | |
tree | c74c7246273506642e2514648e5b9cc58b4ccf74 /connectivity/source/sdbcx | |
parent | eb4fb12fdbe14b929cf8fe5d5785fcfae8d96fa4 (diff) |
comphelper,connectivity: prefer passing OUString by reference
Change-Id: I19b2613918ec62ee39bb3e447f3587c5dba1e36a
Diffstat (limited to 'connectivity/source/sdbcx')
-rw-r--r-- | connectivity/source/sdbcx/VCollection.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/sdbcx/VCollection.cxx b/connectivity/source/sdbcx/VCollection.cxx index 597ca6a86661..0aec95bb8465 100644 --- a/connectivity/source/sdbcx/VCollection.cxx +++ b/connectivity/source/sdbcx/VCollection.cxx @@ -118,7 +118,7 @@ namespace m_aElements.push_back(m_aNameMap.insert(m_aNameMap.begin(), ObjectEntry(*i,ObjectType()))); } - virtual bool rename(const OUString _sOldName,const OUString _sNewName) + virtual bool rename(const OUString& _sOldName, const OUString& _sNewName) { bool bRet = false; ObjectIter aIter = m_aNameMap.find(_sOldName); @@ -518,7 +518,7 @@ void OCollection::insertElement(const OUString& _sElementName,const ObjectType& m_pElements->insert(_sElementName,_xElement); } -void OCollection::renameObject(const OUString _sOldName,const OUString _sNewName) +void OCollection::renameObject(const OUString& _sOldName, const OUString& _sNewName) { OSL_ENSURE(m_pElements->exists(_sOldName),"Element doesn't exist"); OSL_ENSURE(!m_pElements->exists(_sNewName),"Element already exists"); @@ -583,7 +583,7 @@ ObjectType OCollection::appendObject( const OUString& /*_rForName*/, const Refer return cloneDescriptor( descriptor ); } -void OCollection::dropObject(sal_Int32 /*_nPos*/,const OUString /*_sElementName*/) +void OCollection::dropObject(sal_Int32 /*_nPos*/, const OUString& /*_sElementName*/) { } |