summaryrefslogtreecommitdiffstats
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-25 17:35:42 +0200
committerNoel Grandin <noel@peralex.com>2013-11-04 10:11:08 +0200
commit5285beeaa49f6678b471d472868c305c7d9da5f9 (patch)
treea3dbd28995142ab16b448f28e95821115ef5408f /sot
parentremove redundant calls to OUString constructor (diff)
downloadcore-5285beeaa49f6678b471d472868c305c7d9da5f9.tar.gz
core-5285beeaa49f6678b471d472868c305c7d9da5f9.zip
remove redundant calls to OUString constructor in if expression
Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/exchange.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/base/exchange.cxx b/sot/source/base/exchange.cxx
index 9765eb38c107..32a9f6fc9224 100644
--- a/sot/source/base/exchange.cxx
+++ b/sot/source/base/exchange.cxx
@@ -252,7 +252,7 @@ sal_uLong SotExchange::RegisterFormatName( const OUString& rName )
for( i = 0, nMax = rL.size(); i < nMax; i++ )
{
DataFlavor* pFlavor = rL[ i ];
- if( pFlavor && rName == OUString( pFlavor->HumanPresentableName ) )
+ if( pFlavor && rName == pFlavor->HumanPresentableName )
return i + SOT_FORMATSTR_ID_USER_END + 1;
}
@@ -287,7 +287,7 @@ sal_uLong SotExchange::RegisterFormatMimeType( const OUString& rMimeType )
for( i = 0, nMax = rL.size(); i < nMax; i++ )
{
DataFlavor* pFlavor = rL[ i ];
- if( pFlavor && rMimeType == OUString( pFlavor->MimeType ) )
+ if( pFlavor && rMimeType == pFlavor->MimeType )
return i + SOT_FORMATSTR_ID_USER_END + 1;
}