summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-25 17:17:50 +0200
committerNoel Grandin <noel@peralex.com>2013-11-04 10:11:07 +0200
commitaeb41c9b9b7559c6d87bf92807acdc0df9e104cc (patch)
tree5a36bcd5af873c2b597fcda5fbd7e2f76f997669 /svl
parent57c2de08ddf14c0da80de06736d99382ad036539 (diff)
remove redundant calls to OUString constructor
Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6
Diffstat (limited to 'svl')
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index d16702109883..09d82dc1f8e6 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -206,9 +206,7 @@ PassMap StorageItem::getInfo()
for( aNodeInd = 0; aNodeInd < aNodeCount; ++aNodeInd )
{
- aPropNames[aNodeInd] = OUString("Store/Passwordstorage['");
- aPropNames[aNodeInd] += aNodeNames[aNodeInd];
- aPropNames[aNodeInd] += OUString("']/Password");
+ aPropNames[aNodeInd] = "Store/Passwordstorage['" + aNodeNames[aNodeInd] + "']/Password";
}
Sequence< Any > aPropertyValues = ConfigItem::GetProperties( aPropNames );
@@ -367,9 +365,7 @@ void StorageItem::update( const OUString& aURL, const NamePassRecord& aRecord )
Sequence< beans::PropertyValue > sendSeq(1);
- sendSeq[0].Name = OUString("Store/Passwordstorage['");
- sendSeq[0].Name += createIndex( forIndex );
- sendSeq[0].Name += OUString("']/Password");
+ sendSeq[0].Name = "Store/Passwordstorage['" + createIndex( forIndex ) + "']/Password";
sendSeq[0].Value <<= aRecord.GetPersPasswords();
@@ -810,7 +806,7 @@ OUString PasswordContainer::GetDefaultMasterPassword()
{
OUString aResult;
for ( sal_Int32 nInd = 0; nInd < RTL_DIGEST_LENGTH_MD5; nInd++ )
- aResult += OUString( "aa" );
+ aResult += "aa";
return aResult;
}