diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-04 13:23:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-04 13:23:39 +0000 |
commit | 1a7f7c20c1e29fe75c2c485d221c159a1725caf7 (patch) | |
tree | 66949a326e8852ef3dddbe88bafebaa6f6247ce4 /regexp | |
parent | 0e861f19f750fad4ad77a8f32b34e249e34e0c97 (diff) |
use RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'regexp')
-rw-r--r-- | regexp/source/reclass.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/regexp/source/reclass.cxx b/regexp/source/reclass.cxx index 244b746be3dd..d6db174b43ec 100644 --- a/regexp/source/reclass.cxx +++ b/regexp/source/reclass.cxx @@ -1220,14 +1220,14 @@ Regexpr::regex_compile() if (c == (sal_Unicode)':' && *p == (sal_Unicode)']') { sal_Int32 ch; // no support for GRAPH, PUNCT, or XDIGIT yet - sal_Bool is_alnum = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"alnum").getStr()); - sal_Bool is_alpha = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"alpha").getStr()); - sal_Bool is_cntrl = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"cntrl").getStr()); - sal_Bool is_digit = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"digit").getStr()); - sal_Bool is_lower = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"lower").getStr()); - sal_Bool is_print = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"print").getStr()); - sal_Bool is_space = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"space").getStr()); - sal_Bool is_upper = STREQ(str, ::rtl::OUString::createFromAscii((const sal_Char*)"upper").getStr()); + sal_Bool is_alnum = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("alnum")).getStr()); + sal_Bool is_alpha = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("alpha")).getStr()); + sal_Bool is_cntrl = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("cntrl")).getStr()); + sal_Bool is_digit = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("digit")).getStr()); + sal_Bool is_lower = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("lower")).getStr()); + sal_Bool is_print = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("print")).getStr()); + sal_Bool is_space = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("space")).getStr()); + sal_Bool is_upper = STREQ(str, ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("upper")).getStr()); if (!(is_alnum || is_alpha || is_cntrl || is_digit || is_lower || is_print || is_space || is_upper) ) |