summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-13 09:34:37 +0200
committerNoel Grandin <noel@peralex.com>2014-03-13 11:05:53 +0200
commit0dc38bdde056cf33a545d85f9e1211f06d579ff7 (patch)
tree311cb26b3dbafdee92fe96effecc205a7aee50df /svl
parent3075b062261435d568d0680c3405ca61a7a40f39 (diff)
sfx2,svl: prefer passing OUString and OString by reference
Change-Id: I9833265f6e635a057cea2c4a945cc73809b1e2ef
Diffstat (limited to 'svl')
-rw-r--r--svl/source/fsstor/fsstorage.cxx2
-rw-r--r--svl/source/inc/passwordcontainer.hxx2
-rw-r--r--svl/source/items/itemprop.cxx2
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx4
-rw-r--r--svl/source/undo/undo.cxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 12087e3f26fa..6a138629af76 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -64,7 +64,7 @@ using namespace ::com::sun::star;
// TODO: move to a standard helper
-bool isLocalFile_Impl( OUString aURL )
+bool isLocalFile_Impl( const OUString& aURL )
{
OUString aSystemPath;
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index b2d00a86b4f5..22f648697421 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -97,7 +97,7 @@ public:
NamePassRecord( const OUString& aName,
bool bHasMemoryList, const ::std::vector< OUString >& aMemoryList,
- bool bHasPersistentList, const OUString aPersistentList )
+ bool bHasPersistentList, const OUString & aPersistentList )
: m_aName( aName )
, m_bHasMemPass( bHasMemoryList )
, m_bHasPersPass( bHasPersistentList )
diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx
index aeb7c97771b2..3c45186615de 100644
--- a/svl/source/items/itemprop.cxx
+++ b/svl/source/items/itemprop.cxx
@@ -112,7 +112,7 @@ uno::Sequence<beans::Property> SfxItemPropertyMap::getProperties() const
return m_pImpl->m_aPropSeq;
}
-beans::Property SfxItemPropertyMap::getPropertyByName( const OUString rName ) const
+beans::Property SfxItemPropertyMap::getPropertyByName( const OUString & rName ) const
throw( beans::UnknownPropertyException )
{
SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName);
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 0538a240fbdb..762174e77d37 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -78,7 +78,7 @@ static OUString createIndex( vector< OUString > lines )
}
-static vector< OUString > getInfoFromInd( OUString aInd )
+static vector< OUString > getInfoFromInd( const OUString& aInd )
{
vector< OUString > aResult;
bool aStart = true;
@@ -162,7 +162,7 @@ static OUString getAsciiLine( const ::rtl::ByteSequence& buf )
}
-static ::rtl::ByteSequence getBufFromAsciiLine( OUString line )
+static ::rtl::ByteSequence getBufFromAsciiLine( const OUString& line )
{
OSL_ENSURE( line.getLength() % 2 == 0, "Wrong syntax!\n" );
OString tmpLine = OUStringToOString( line, RTL_TEXTENCODING_ASCII_US );
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 0f695ec7f5d3..e93f4adf5e39 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -1241,7 +1241,7 @@ OUString SfxListUndoAction::GetRepeatComment(SfxRepeatTarget &) const
SfxListUndoAction::SfxListUndoAction
(
const OUString &rComment,
- const OUString rRepeatComment,
+ const OUString &rRepeatComment,
sal_uInt16 Id,
SfxUndoArray *pFather
)