summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());