summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 15:37:46 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 20:03:42 +0200
commit27cea710fd1e4e8887bcb95e1d25a53d9eae9f22 (patch)
tree008d7618c1ac152dca698a9ad2d791db0afecd58 /sc
parent99268dbe1fc25bc2d04eefa1a9f7e2cf7b398065 (diff)
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 ) {/' \{\} \;
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/vba/vbaworkbook.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/ui/vba/vbaworkbook.cxx b/sc/source/ui/vba/vbaworkbook.cxx
index 5b7a1845e0d2..d73ecca274fb 100644
--- a/sc/source/ui/vba/vbaworkbook.cxx
+++ b/sc/source/ui/vba/vbaworkbook.cxx
@@ -111,7 +111,7 @@ ScVbaWorkbook::getFileFormat( ) throw (::uno::RuntimeException)
// #FIXME - seems suspect should we not walk through the properties
// to find the FilterName
- if (aArgs[0].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("FilterName"))) {
+ if ( aArgs[0].Name == "FilterName" ) {
aArgs[0].Value >>= aFilterName;
} else {
aArgs[1].Value >>= aFilterName;
@@ -121,27 +121,27 @@ ScVbaWorkbook::getFileFormat( ) throw (::uno::RuntimeException)
aFileFormat = excel::XlFileFormat::xlCSV; //xlFileFormat.
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DBF"))) {
+ if ( aFilterName == "DBF" ) {
aFileFormat = excel::XlFileFormat::xlDBF4;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DIF"))) {
+ if ( aFilterName == "DIF" ) {
aFileFormat = excel::XlFileFormat::xlDIF;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Lotus"))) {
+ if ( aFilterName == "Lotus" ) {
aFileFormat = excel::XlFileFormat::xlWK3;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MS Excel 4.0"))) {
+ if ( aFilterName == "MS Excel 4.0" ) {
aFileFormat = excel::XlFileFormat::xlExcel4Workbook;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MS Excel 5.0/95"))) {
+ if ( aFilterName == "MS Excel 5.0/95" ) {
aFileFormat = excel::XlFileFormat::xlExcel5;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MS Excel 97"))) {
+ if ( aFilterName == "MS Excel 97" ) {
aFileFormat = excel::XlFileFormat::xlExcel9795;
}
@@ -149,14 +149,14 @@ ScVbaWorkbook::getFileFormat( ) throw (::uno::RuntimeException)
aFileFormat = excel::XlFileFormat::xlHtml;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("calc_StarOffice_XML_Calc_Template"))) {
+ if ( aFilterName == "calc_StarOffice_XML_Calc_Template" ) {
aFileFormat = excel::XlFileFormat::xlTemplate;
}
if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("StarOffice XML (Calc)"))) {
aFileFormat = excel::XlFileFormat::xlWorkbookNormal;
}
- if (aFilterName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("calc8"))) {
+ if ( aFilterName == "calc8" ) {
aFileFormat = excel::XlFileFormat::xlWorkbookNormal;
}