summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-04 09:28:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-04 13:07:40 +0000
commit32f95a35514701ed16413125b440c16d90f52b4a (patch)
tree25ac5edca15ee02bc937ee47116c2197559da4cd /svl
parent0f98299f7aa44bbb55c1bfeddca7799f727d14b0 (diff)
V813: Decreased performance
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
Diffstat (limited to 'svl')
-rw-r--r--svl/source/inc/passwordcontainer.hxx2
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx7
2 files changed, 3 insertions, 6 deletions
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 )