summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:56:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:26:58 +0200
commit6d4a0474b398f754fd960045c050b4e065ac61a1 (patch)
treedddafd70faa1d90d948063c8885e9b33546b67f3 /lingucomponent
parent6194da0903528ecf07a4dcbea76ce5de6a5c2465 (diff)
loplugin:salunicodeliteral: lingucomponent
Change-Id: I130ca7e2d98626f0d187eb69e6ea4b0554f1bd00
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx8
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm8
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx8
3 files changed, 12 insertions, 12 deletions
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index e124a9c6e61d..5183bc39007d 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -327,9 +327,9 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
{
ch = rBuf[ix];
if ((ch == 0x201C) || (ch == 0x201D))
- rBuf[ix] = (sal_Unicode)0x0022;
+ rBuf[ix] = u'"';
if ((ch == 0x2018) || (ch == 0x2019))
- rBuf[ix] = (sal_Unicode)0x0027;
+ rBuf[ix] = u'\'';
}
OUString nWord(rBuf.makeStringAndClear());
@@ -606,9 +606,9 @@ Reference< XPossibleHyphens > SAL_CALL Hyphenator::createPossibleHyphens( const
{
ch = rBuf[ix];
if ((ch == 0x201C) || (ch == 0x201D))
- rBuf[ix] = (sal_Unicode)0x0022;
+ rBuf[ix] = u'"';
if ((ch == 0x2018) || (ch == 0x2019))
- rBuf[ix] = (sal_Unicode)0x0027;
+ rBuf[ix] = u'\'';
}
OUString nWord(rBuf.makeStringAndClear());
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index 4c4c23fed3ff..a68fed705570 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -223,8 +223,8 @@ sal_Int16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale
sal_Unicode c;
for (sal_Int32 ix=0; ix < n; ix++) {
c = rBuf[ix];
- if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = (sal_Unicode)0x0022;
- if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = (sal_Unicode)0x0027;
+ if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = u'"';
+ if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = u'\'';
}
OUString nWord(rBuf.makeStringAndClear());
@@ -326,8 +326,8 @@ Reference< XSpellAlternatives >
sal_Unicode c;
for (sal_Int32 ix=0; ix < n; ix++) {
c = rBuf[ix];
- if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = (sal_Unicode)0x0022;
- if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = (sal_Unicode)0x0027;
+ if ((c == 0x201C) || (c == 0x201D)) rBuf[ix] = u'"';
+ if ((c == 0x2018) || (c == 0x2019)) rBuf[ix] = u'\'';
}
OUString nWord(rBuf.makeStringAndClear());
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 29f94cf8babb..bbb1231a4c24 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -298,9 +298,9 @@ sal_Int16 SpellChecker::GetSpellFailure(const OUString &rWord, const Locale &rLo
{
c = rBuf[ix];
if ((c == 0x201C) || (c == 0x201D))
- rBuf[ix] = (sal_Unicode)0x0022;
+ rBuf[ix] = u'"';
else if ((c == 0x2018) || (c == 0x2019))
- rBuf[ix] = (sal_Unicode)0x0027;
+ rBuf[ix] = u'\'';
// recognize words with Unicode ligatures and ZWNJ/ZWJ characters (only
// with 8-bit encoded dictionaries. For UTF-8 encoded dictionaries
@@ -464,9 +464,9 @@ Reference< XSpellAlternatives >
{
c = rBuf[ix];
if ((c == 0x201C) || (c == 0x201D))
- rBuf[ix] = (sal_Unicode)0x0022;
+ rBuf[ix] = u'"';
if ((c == 0x2018) || (c == 0x2019))
- rBuf[ix] = (sal_Unicode)0x0027;
+ rBuf[ix] = u'\'';
}
OUString nWord(rBuf.makeStringAndClear());