diff options
author | August Sodora <augsod@gmail.com> | 2011-11-26 13:19:58 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-11-26 13:19:58 -0500 |
commit | e81f36f6b62c6686f0156aef151ad8bf6d1b7917 (patch) | |
tree | 16e00612fefb455fbf12a8749b51487bfe7c7001 /svl | |
parent | a97dc8f45d3d8c5b17acb5b694df1db5ae74e2ca (diff) |
C-style cast -> C++-style cast
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 || |