From 27cea710fd1e4e8887bcb95e1d25a53d9eae9f22 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Fri, 6 Apr 2012 15:37:46 +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 ) {/' \{\} \; --- sfx2/source/doc/SfxDocumentMetaData.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index a97b7cee93f0..77caad27b039 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -1320,7 +1320,7 @@ void SAL_CALL SfxDocumentMetaData::init( ::rtl::OUString::createFromAscii(s_nsODFMeta), ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("value-type"))); ::rtl::OUString text = getNodeText(*it); - if (type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("float"))) { + if ( type == "float" ) { double d; if (::sax::Converter::convertDouble(d, text)) { any <<= d; @@ -1329,7 +1329,7 @@ void SAL_CALL SfxDocumentMetaData::init( OUStringToOString(text, RTL_TEXTENCODING_UTF8).getStr()); continue; } - } else if (type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("date"))) { + } else if ( type == "date" ) { bool isDateTime; css::util::Date d; css::util::DateTime dt; @@ -1344,7 +1344,7 @@ void SAL_CALL SfxDocumentMetaData::init( OUStringToOString(text, RTL_TEXTENCODING_UTF8).getStr()); continue; } - } else if (type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("time"))) { + } else if ( type == "time" ) { css::util::Duration ud; if (textToDuration(ud, text)) { any <<= ud; @@ -1353,7 +1353,7 @@ void SAL_CALL SfxDocumentMetaData::init( OUStringToOString(text, RTL_TEXTENCODING_UTF8).getStr()); continue; } - } else if (type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("boolean"))) { + } else if ( type == "boolean" ) { bool b; if (::sax::Converter::convertBool(b, text)) { any <<= b; -- cgit