From aeb41c9b9b7559c6d87bf92807acdc0df9e104cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 25 Oct 2013 17:17:50 +0200 Subject: remove redundant calls to OUString constructor Change code like this: aStr = OUString("xxxx"); into this: aStr = "xxxx"; Change-Id: I31cb92e21658d57bb9e14b65c179536eae8096f6 --- svl/source/passwordcontainer/passwordcontainer.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'svl/source') 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; } -- cgit