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 /slideshow | |
parent | c306532e0bed1df36abf5d7ad6f0363056e69739 (diff) |
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 2 | ||||
-rw-r--r-- | slideshow/source/engine/tools.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index c8a307d2782a..cdc164271923 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -1088,7 +1088,7 @@ bool SlideImpl::applyInitialShapeAttributes( for( ::std::size_t j=0; j<nShapePropSize; ++j ) { bool bVisible=false; - if( rShapeProps[j].Name.equalsIgnoreAsciiCaseAscii("visibility") && + if( rShapeProps[j].Name.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("visibility")) && extractValue( bVisible, rShapeProps[j].Value, pShape, diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx index 7dabb90b060e..0603d6a323f7 100644 --- a/slideshow/source/engine/tools.cxx +++ b/slideshow/source/engine/tools.cxx @@ -417,14 +417,14 @@ namespace slideshow // we also take the strings "true" and "false", // as well as "on" and "off" here - if( aString.equalsIgnoreAsciiCaseAscii("true") || - aString.equalsIgnoreAsciiCaseAscii("on") ) + if( aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("true")) || + aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("on")) ) { o_rValue = true; return true; } - if( aString.equalsIgnoreAsciiCaseAscii("false") || - aString.equalsIgnoreAsciiCaseAscii("off") ) + if( aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("false")) || + aString.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("off")) ) { o_rValue = false; return true; |