diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/lngmisc.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/svl/inc/svl/lngmisc.hxx b/svl/inc/svl/lngmisc.hxx index 8976a6598605..176022f98b3f 100644 --- a/svl/inc/svl/lngmisc.hxx +++ b/svl/inc/svl/lngmisc.hxx @@ -35,11 +35,11 @@ class String; /////////////////////////////////////////////////////////////////////////// -#define SVT_SOFT_HYPHEN ((sal_Unicode) 0x00AD) -#define SVT_HARD_HYPHEN ((sal_Unicode) 0x2011) +#define SVT_SOFT_HYPHEN (static_cast<sal_Unicode>(0x00AD)) +#define SVT_HARD_HYPHEN (static_cast<sal_Unicode>(0x2011)) // the non-breaking space -#define SVT_HARD_SPACE ((sal_Unicode) 0x00A0) +#define SVT_HARD_SPACE (static_cast<sal_Unicode>(0x00A0)) namespace linguistic { @@ -52,10 +52,9 @@ inline sal_Bool IsHyphen( sal_Unicode cChar ) inline sal_Bool IsControlChar( sal_Unicode cChar ) { - return cChar < (sal_Unicode) ' '; + return cChar < static_cast<sal_Unicode>(' '); } - inline sal_Bool HasHyphens( const rtl::OUString &rTxt ) { return rTxt.indexOf( SVT_SOFT_HYPHEN ) != -1 || |