Kaydet (Commit) e81f36f6 authored tarafından August Sodora's avatar August Sodora

C-style cast -> C++-style cast

üst a97dc8f4
...@@ -35,11 +35,11 @@ class String; ...@@ -35,11 +35,11 @@ class String;
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
#define SVT_SOFT_HYPHEN ((sal_Unicode) 0x00AD) #define SVT_SOFT_HYPHEN (static_cast<sal_Unicode>(0x00AD))
#define SVT_HARD_HYPHEN ((sal_Unicode) 0x2011) #define SVT_HARD_HYPHEN (static_cast<sal_Unicode>(0x2011))
// the non-breaking space // the non-breaking space
#define SVT_HARD_SPACE ((sal_Unicode) 0x00A0) #define SVT_HARD_SPACE (static_cast<sal_Unicode>(0x00A0))
namespace linguistic namespace linguistic
{ {
...@@ -52,10 +52,9 @@ inline sal_Bool IsHyphen( sal_Unicode cChar ) ...@@ -52,10 +52,9 @@ inline sal_Bool IsHyphen( sal_Unicode cChar )
inline sal_Bool IsControlChar( 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 ) inline sal_Bool HasHyphens( const rtl::OUString &rTxt )
{ {
return rTxt.indexOf( SVT_SOFT_HYPHEN ) != -1 || return rTxt.indexOf( SVT_SOFT_HYPHEN ) != -1 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment