From 5285beeaa49f6678b471d472868c305c7d9da5f9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 25 Oct 2013 17:35:42 +0200 Subject: remove redundant calls to OUString constructor in if expression Convert code like: if( aStr == OUString("xxxx") ) to this: if( aStr == "xxxx" ) Change-Id: I8d201f048477731eff590fb988259ef0935c080c --- cppuhelper/test/testpropshlp.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cppuhelper/test') diff --git a/cppuhelper/test/testpropshlp.cxx b/cppuhelper/test/testpropshlp.cxx index b7a30a8288dd..7783e801a3bf 100644 --- a/cppuhelper/test/testpropshlp.cxx +++ b/cppuhelper/test/testpropshlp.cxx @@ -468,13 +468,13 @@ public: case PROPERTY_BOOL: { OSL_FAIL( "PropertySetHelper: BOOL cannot change" ); - OSL_ENSURE( evt.PropertyName == OUString("BOOL"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "BOOL", "PropertySetHelper: wrong name" ); } break; case PROPERTY_INT16: { - OSL_ENSURE( evt.PropertyName == OUString("INT16"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "INT16", "PropertySetHelper: wrong name" ); OSL_ENSURE( pExceptedListenerValues[nCurrent].getValueType().getTypeClass() == TypeClass_SHORT , "PropertySetHelper: wrong data type" ); @@ -493,7 +493,7 @@ public: case PROPERTY_INT32: { - OSL_ENSURE( evt.PropertyName == OUString("INT32"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "INT32", "PropertySetHelper: wrong name" ); sal_Int32 nInt32(0),nOldInt32(0); @@ -526,13 +526,13 @@ public: case PROPERTY_BOOL: { OSL_FAIL( "PropertySetHelper: BOOL cannot change" ); - OSL_ENSURE( evt.PropertyName == OUString("BOOL"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "BOOL", "PropertySetHelper: wrong name" ); } break; case PROPERTY_INT16: { - OSL_ENSURE( evt.PropertyName == OUString("INT16"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "INT16", "PropertySetHelper: wrong name" ); sal_Int16 nInt16(0), nOldInt16(0); pExceptedListenerValues[nCurrent] >>= nInt16; @@ -554,7 +554,7 @@ public: case PROPERTY_INT32: { - OSL_ENSURE( evt.PropertyName == OUString("INT32"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "INT32", "PropertySetHelper: wrong name" ); sal_Int32 nInt32(0),nOldInt32(0); pExceptedListenerValues[nCurrent] >>= nInt32; @@ -589,13 +589,13 @@ public: case PROPERTY_BOOL: { OSL_FAIL( "PropertySetHelper: BOOL cannot change" ); - OSL_ENSURE( evt.PropertyName == OUString("BOOL"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "BOOL", "PropertySetHelper: wrong name" ); } break; case PROPERTY_INT16: { - OSL_ENSURE( evt.PropertyName == OUString("INT16"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "INT16", "PropertySetHelper: wrong name" ); sal_Int16 nInt16(0), nOldInt16(0); pExceptedListenerValues[nCurrent] >>= nInt16; @@ -611,7 +611,7 @@ public: case PROPERTY_INT32: { - OSL_ENSURE( evt.PropertyName == OUString("INT32"), "PropertySetHelper: wrong name" ); + OSL_ENSURE( evt.PropertyName == "INT32", "PropertySetHelper: wrong name" ); sal_Int32 nInt32(0),nOldInt32(0); -- cgit