diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-21 01:06:12 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-21 01:07:21 +0900 |
commit | 30063974396f43ef30bc6b81f0260d3fb09d17cd (patch) | |
tree | aafd11745407f9579c855b3dd9c70c40c1360f73 /sw | |
parent | writerfilter: try to silence MacOSX-Intel tinderbox (diff) | |
download | core-30063974396f43ef30bc6b81f0260d3fb09d17cd.tar.gz core-30063974396f43ef30bc6b81f0260d3fb09d17cd.zip |
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbacheckbox.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaformfield.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaformfields.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/vba/vbacheckbox.cxx b/sw/source/ui/vba/vbacheckbox.cxx index 65b55a3142da..61509e9dc16e 100644 --- a/sw/source/ui/vba/vbacheckbox.cxx +++ b/sw/source/ui/vba/vbacheckbox.cxx @@ -59,7 +59,7 @@ sal_Bool SAL_CALL SwVbaCheckBox::getValue() throw ( uno::RuntimeException ) { if( mxFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( ECMA_FORMCHECKBOX_CHECKED ) ) { - if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAscii("on") ) + if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("on")) ) bValue = sal_True; else bValue = sal_False; diff --git a/sw/source/ui/vba/vbaformfield.cxx b/sw/source/ui/vba/vbaformfield.cxx index ed6bf39a6018..ec3e16bc74d1 100644 --- a/sw/source/ui/vba/vbaformfield.cxx +++ b/sw/source/ui/vba/vbaformfield.cxx @@ -64,7 +64,7 @@ rtl::OUString SAL_CALL SwVbaFormField::getResult() throw ( uno::RuntimeException { if( mxFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( ECMA_FORMCHECKBOX_CHECKED ) ) { - if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAscii("on") ) + if( mxFormField->getParamValue(i).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("on")) ) nValue = 1; else nValue = 0; diff --git a/sw/source/ui/vba/vbaformfields.cxx b/sw/source/ui/vba/vbaformfields.cxx index 43c8e3cd5efa..632aa0e5469b 100644 --- a/sw/source/ui/vba/vbaformfields.cxx +++ b/sw/source/ui/vba/vbaformfields.cxx @@ -47,7 +47,7 @@ rtl::OUString lcl_getFormFieldName( const uno::Reference< text::XFormField >& xF sal_Int32 nCount = xFormField->getParamCount(); for( sal_Int32 i = 0; i < nCount; i++ ) { - if( xFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( "Name" ) ) + if( xFormField->getParamName(i).equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("Name")) ) { sName = xFormField->getParamValue(i); OSL_TRACE("lcl_getFormFieldName: %s", rtl::OUStringToOString( sName, RTL_TEXTENCODING_UTF8 ).getStr() ); |