diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:54:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:55 +0200 |
commit | 0d368642173fa93bb4cdab574423904530bc90a7 (patch) | |
tree | 83d95c236a43adf64d72f32332e9061c612ec462 /include/svl/lngmisc.hxx | |
parent | 832614ffcc771acdfe311e223e66caf58a42918e (diff) |
loplugin:salunicodeliteral: svl
Change-Id: Iaa5b97267b6487c37744bd08d21c82015da9d522
Diffstat (limited to 'include/svl/lngmisc.hxx')
-rw-r--r-- | include/svl/lngmisc.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/svl/lngmisc.hxx b/include/svl/lngmisc.hxx index 85b60458ac3f..7e5728d67a9a 100644 --- a/include/svl/lngmisc.hxx +++ b/include/svl/lngmisc.hxx @@ -24,11 +24,11 @@ #include <rtl/ustring.hxx> -#define SVT_SOFT_HYPHEN (static_cast<sal_Unicode>(0x00AD)) -#define SVT_HARD_HYPHEN (static_cast<sal_Unicode>(0x2011)) +#define SVT_SOFT_HYPHEN u'\x00AD' +#define SVT_HARD_HYPHEN u'\x2011' // the non-breaking space -#define SVT_HARD_SPACE (static_cast<sal_Unicode>(0x00A0)) +#define SVT_HARD_SPACE u'\x00A0' namespace linguistic { @@ -40,7 +40,7 @@ namespace linguistic inline bool IsControlChar(sal_Unicode cChar) { // TODO: why doesn't this include 0x0F DEL? - return cChar < static_cast<sal_Unicode>(' '); + return cChar < u' '; } sal_Int32 GetNumControlChars( const OUString &rTxt ); |