From 743f22045c4ec08c46c259fc0ba240194a391457 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Fri, 6 Apr 2012 15:05:52 +0200 Subject: Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \; --- configmgr/source/type.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configmgr/source/type.cxx') diff --git a/configmgr/source/type.cxx b/configmgr/source/type.cxx index 86a2e6dabced..0fae6abfdf92 100644 --- a/configmgr/source/type.cxx +++ b/configmgr/source/type.cxx @@ -156,13 +156,13 @@ Type getDynamicType(css::uno::Any const & value) { RTL_CONSTASCII_STRINGPARAM("[]boolean"))) { return TYPE_BOOLEAN_LIST; - } else if (name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("[]short"))) + } else if ( name == "[]short" ) { return TYPE_SHORT_LIST; - } else if (name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("[]long"))) + } else if ( name == "[]long" ) { return TYPE_INT_LIST; - } else if (name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("[]hyper"))) + } else if ( name == "[]hyper" ) { return TYPE_LONG_LIST; } else if (name.equalsAsciiL( -- cgit