diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-15 22:44:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-15 22:52:26 +0200 |
commit | bb20def9f65689633928fe2f6f5e34584122b17e (patch) | |
tree | 73575b4b6b21a1f349a1c87dabb7e88a20da2a49 /configmgr | |
parent | 2b60f46e25adfce0f87424513e492c446f8df528 (diff) |
Simplify some matchAsciiL -> match
Change-Id: Ib0cac79b86ed60b4df1fc90db15842cc99abc1e9
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/data.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index 146da67bdcae..dfca76435a8b 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -56,18 +56,13 @@ bool decode( while (begin != end) { sal_Unicode c = encoded[begin++]; if (c == '&') { - if (encoded.matchAsciiL(RTL_CONSTASCII_STRINGPARAM("amp;"), begin)) - { + if (encoded.match("amp;", begin)) { buf.append(sal_Unicode('&')); begin += RTL_CONSTASCII_LENGTH("amp;"); - } else if (encoded.matchAsciiL( - RTL_CONSTASCII_STRINGPARAM("quot;"), begin)) - { + } else if (encoded.match("quot;", begin)) { buf.append(sal_Unicode('"')); begin += RTL_CONSTASCII_LENGTH("quot;"); - } else if (encoded.matchAsciiL( - RTL_CONSTASCII_STRINGPARAM("apos;"), begin)) - { + } else if (encoded.match("apos;", begin)) { buf.append(sal_Unicode('\'')); begin += RTL_CONSTASCII_LENGTH("apos;"); } else { |