diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-19 23:27:29 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-19 23:28:55 +0900 |
commit | 96cb767123c9e8f5db197454b4da02c8f7583d2b (patch) | |
tree | 4790978cfa591fb5cf5fd0920159abee7d6f1ac8 /l10ntools | |
parent | configure: also, --with-lang=en-US should not trigger TRANSLATIONS build type (diff) | |
download | core-96cb767123c9e8f5db197454b4da02c8f7583d2b.tar.gz core-96cb767123c9e8f5db197454b4da02c8f7583d2b.zip |
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/tagtest.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/l10ntools/source/tagtest.cxx b/l10ntools/source/tagtest.cxx index 23b5bae2ac99..3e85544cfdcb 100644 --- a/l10ntools/source/tagtest.cxx +++ b/l10ntools/source/tagtest.cxx @@ -1415,11 +1415,11 @@ sal_Bool LingTest::IsTagMandatory( TokenInfo const &aToken, TokenId &aMetaTokens || TAG_COMMONEND == aTokenId ) { rtl::OUString aTagName = aToken.GetTagName(); - return !(aTagName.equalsIgnoreAsciiCaseAscii( "comment" ) - || aTagName.equalsIgnoreAsciiCaseAscii( "bookmark_value" ) - || aTagName.equalsIgnoreAsciiCaseAscii( "emph" ) - || aTagName.equalsIgnoreAsciiCaseAscii( "item" ) - || aTagName.equalsIgnoreAsciiCaseAscii( "br" ) ); + return !(aTagName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("comment")) + || aTagName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("bookmark_value")) + || aTagName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("emph")) + || aTagName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("item")) + || aTagName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("br")) ); } return sal_False; } |