From 32f95a35514701ed16413125b440c16d90f52b4a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Mar 2015 09:28:31 +0000 Subject: V813: Decreased performance Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91 --- svl/source/inc/passwordcontainer.hxx | 2 +- svl/source/passwordcontainer/passwordcontainer.cxx | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'svl') diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx index 3f8b9fba11ec..3ddb900eed77 100644 --- a/svl/source/inc/passwordcontainer.hxx +++ b/svl/source/inc/passwordcontainer.hxx @@ -291,7 +291,7 @@ bool createUrlRecord( ::std::vector< OUString > DecodePasswords( const OUString& aLine, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); - OUString EncodePasswords( ::std::vector< OUString > lines, const OUString& aMasterPassword ) + OUString EncodePasswords(const std::vector< OUString >& lines, const OUString& aMasterPassword ) throw(::com::sun::star::uno::RuntimeException); public: diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index 59a9379f8416..779cc64af4ed 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -47,7 +47,7 @@ using namespace com::sun::star::task; using namespace com::sun::star::ucb; -static OUString createIndex( vector< OUString > lines ) +static OUString createIndex(const vector< OUString >& lines) { OString aResult; @@ -490,9 +490,7 @@ vector< OUString > PasswordContainer::DecodePasswords( const OUString& aLine, co throw RuntimeException("Can't decode!" ); } - - -OUString PasswordContainer::EncodePasswords( vector< OUString > lines, const OUString& aMasterPasswd ) throw(RuntimeException) +OUString PasswordContainer::EncodePasswords(const vector< OUString >& lines, const OUString& aMasterPasswd ) throw(RuntimeException) { if( !aMasterPasswd.isEmpty() ) { @@ -569,7 +567,6 @@ OUString PasswordContainer::EncodePasswords( vector< OUString > lines, const OUS throw RuntimeException("Can't encode!" ); } - void PasswordContainer::UpdateVector( const OUString& aURL, list< NamePassRecord >& toUpdate, NamePassRecord& aRecord, bool writeFile ) throw(RuntimeException) { for( list< NamePassRecord >::iterator aNPIter = toUpdate.begin(); aNPIter != toUpdate.end(); ++aNPIter ) -- cgit v1.2.3