diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-15 11:05:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-19 10:29:31 +0200 |
commit | 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch) | |
tree | 6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /svl/source | |
parent | 2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff) |
remove unnecessary use of OUString constructor when assigning
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/numbers/zforscan.cxx | 2 | ||||
-rw-r--r-- | svl/source/passwordcontainer/syscreds.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx index fe0bc311d251..4165b9f62d88 100644 --- a/svl/source/numbers/zforscan.cxx +++ b/svl/source/numbers/zforscan.cxx @@ -2286,7 +2286,7 @@ sal_Int32 ImpSvNumberformatScan::FinalScan( OUString& rString ) case NF_KEY_GGG : // GGG case NF_KEY_R : // R case NF_KEY_RR : // RR - sStrArray[i] = OUString(sKeyword[nTypeArray[i]]); // tTtT -> TTTT + sStrArray[i] = sKeyword[nTypeArray[i]]; // tTtT -> TTTT nPos = nPos + sStrArray[i].getLength(); i++; break; diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx index b727cc4cfd19..dbb420532b8f 100644 --- a/svl/source/passwordcontainer/syscreds.cxx +++ b/svl/source/passwordcontainer/syscreds.cxx @@ -30,7 +30,7 @@ SysCredentialsConfigItem::SysCredentialsConfigItem( m_pOwner( pOwner ) { uno::Sequence< OUString > aNode( 1 ); - aNode[ 0 ] = OUString( "Office.Common/Passwords/AuthenticateUsingSystemCredentials" ); + aNode[ 0 ] = "Office.Common/Passwords/AuthenticateUsingSystemCredentials"; EnableNotification( aNode ); } @@ -60,7 +60,7 @@ SysCredentialsConfigItem::getSystemCredentialsURLs() { // read config item uno::Sequence< OUString > aPropNames( 1 ); - aPropNames[ 0 ] = OUString( "AuthenticateUsingSystemCredentials" ); + aPropNames[ 0 ] = "AuthenticateUsingSystemCredentials"; uno::Sequence< uno::Any > aAnyValues( utl::ConfigItem::GetProperties( aPropNames ) ); @@ -88,7 +88,7 @@ void SysCredentialsConfigItem::setSystemCredentialsURLs( // write config item. uno::Sequence< OUString > aPropNames( 1 ); uno::Sequence< uno::Any > aPropValues( 1 ); - aPropNames[ 0 ] = OUString( "AuthenticateUsingSystemCredentials" ); + aPropNames[ 0 ] = "AuthenticateUsingSystemCredentials"; aPropValues[ 0 ] <<= seqURLList; utl::ConfigItem::SetModified(); |