summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
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/source/spellcheck/macosxspell/macspellimp.mm
parent6194da0903528ecf07a4dcbea76ce5de6a5c2465 (diff)
loplugin:salunicodeliteral: lingucomponent
Change-Id: I130ca7e2d98626f0d187eb69e6ea4b0554f1bd00
Diffstat (limited to 'lingucomponent/source/spellcheck/macosxspell/macspellimp.mm')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm8
1 files changed, 4 insertions, 4 deletions
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());