From 919abbfe9b1461e4accbdebe4a2475379d2d5731 Mon Sep 17 00:00:00 2001 From: August Sodora Date: Sat, 26 Nov 2011 15:24:38 -0500 Subject: Avoid use of the preprocessor --- svl/source/misc/lngmisc.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svl') 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(0x02); + // the resulting string looks like this: // 1. non breaking field characters get removed // 2. remaining control characters will be replaced by ' ' -- cgit