diff options
author | August Sodora <augsod@gmail.com> | 2011-11-26 15:24:38 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-11-26 18:13:26 -0500 |
commit | 919abbfe9b1461e4accbdebe4a2475379d2d5731 (patch) | |
tree | 44ca7e8aea5fe07594a8e0e27ba26ffee0f62a13 /svl | |
parent | 05a29e5a642ca53a21532a3c25ab79db7b40b49c (diff) |
Avoid use of the preprocessor
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/lngmisc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/source/misc/lngmisc.cxx b/svl/source/misc/lngmisc.cxx index 40652905ef26..55028e8a5a89 100644 --- a/svl/source/misc/lngmisc.cxx +++ b/svl/source/misc/lngmisc.cxx @@ -73,11 +73,11 @@ namespace linguistic return true; } - // non breaking field character -#define CH_TXTATR_INWORD ((sal_Char) 0x02) - bool ReplaceControlChars( rtl::OUString &rTxt, sal_Char /*aRplcChar*/ ) { + // non breaking field character + static const sal_Char CH_TXTATR_INWORD = static_cast<sal_Char>(0x02); + // the resulting string looks like this: // 1. non breaking field characters get removed // 2. remaining control characters will be replaced by ' ' |