diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-25 17:35:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 10:11:08 +0200 |
commit | 5285beeaa49f6678b471d472868c305c7d9da5f9 (patch) | |
tree | a3dbd28995142ab16b448f28e95821115ef5408f /unotools | |
parent | aeb41c9b9b7559c6d87bf92807acdc0df9e104cc (diff) |
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 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index ca4e57839389..5c7f78f35f87 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -186,7 +186,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc for (i = 0; i < n; i++) { PropertyChangeEvent evt (rEvent[i]); - if (evt.PropertyName == OUString("DocumentHeader")) + if (evt.PropertyName == "DocumentHeader") { Sequence<DocumentHeaderField> aHead; if (evt.NewValue >>= aHead) @@ -211,7 +211,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc m_xLockBytes->SetStreamValid_Impl(); } - else if (evt.PropertyName == OUString("PresentationURL")) + else if (evt.PropertyName == "PresentationURL") { OUString aUrl; if (evt.NewValue >>= aUrl) @@ -224,7 +224,7 @@ void SAL_CALL UcbPropertiesChangeListener_Impl::propertiesChange ( const Sequenc } } } - else if (evt.PropertyName == OUString("MediaType")) + else if (evt.PropertyName == "MediaType") { OUString aContentType; if (evt.NewValue >>= aContentType) |