summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-14 08:16:35 +0200
committerNoel Grandin <noel@peralex.com>2013-11-14 08:17:32 +0200
commitd366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch)
tree4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /i18npool/source/indexentry
parentd2fa59e4025050c9b668ecff379d668f0db52639 (diff)
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'i18npool/source/indexentry')
-rw-r--r--i18npool/source/indexentry/genindex_data.cxx2
-rw-r--r--i18npool/source/indexentry/indexentrysupplier_default.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/i18npool/source/indexentry/genindex_data.cxx b/i18npool/source/indexentry/genindex_data.cxx
index 03bdd4ea7afc..f3fa9c6abd99 100644
--- a/i18npool/source/indexentry/genindex_data.cxx
+++ b/i18npool/source/indexentry/genindex_data.cxx
@@ -49,7 +49,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
sal_Int32 i, j, k;
sal_Int32 address[MAX_ADDRESS];
for (i=0; i<MAX_ADDRESS; i++) address[i]=-1;
- OUString sep=OUString(sal_Unicode('|'));
+ OUString sep=OUString('|');
OUString result=sep;
sal_Int32 max=0;
diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx
index cb54e22b730a..8edd4b29f557 100644
--- a/i18npool/source/indexentry/indexentrysupplier_default.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx
@@ -180,7 +180,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
for (i = 0; i < len && key_count < MAX_KEYS; i++)
{
sal_Unicode curr = keyStr[i];
- sal_Unicode close = sal_Unicode(')');
+ sal_Unicode close = ')';
if (unicode::isWhiteSpace(curr))
continue;
@@ -196,10 +196,10 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
throw RuntimeException();
break;
case sal_Unicode('['):
- for (i++; i < len && keyStr[i] != sal_Unicode(']'); i++) {
+ for (i++; i < len && keyStr[i] != ']'; i++) {
if (unicode::isWhiteSpace(keyStr[i])) {
continue;
- } else if (keyStr[i] == sal_Unicode('_')) {
+ } else if (keyStr[i] == '_') {
for (curr=keyStr[i-1]+1; curr <= keyStr[i+1]; curr++)
skipping_chars+=OUString(curr);
i+=2;
@@ -209,7 +209,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
}
break;
case sal_Unicode('{'):
- close = sal_Unicode('}');
+ close = '}';
case sal_Unicode('('):
if (key_count > 0) {
sal_Int16 end = i+1;
@@ -217,7 +217,7 @@ void Index::makeIndexKeys(const lang::Locale &rLocale, const OUString &algorithm
if (end >= len) // no found
throw RuntimeException();
- if (close == sal_Unicode(')'))
+ if (close == ')')
keys[key_count-1].desc = keyStr.copy(i+1, end-i-1);
else {
mkeys[mkey_count++]=key_count;