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 | |
parent | 832614ffcc771acdfe311e223e66caf58a42918e (diff) |
loplugin:salunicodeliteral: svl
Change-Id: Iaa5b97267b6487c37744bd08d21c82015da9d522
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/lngmisc.hxx | 8 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 2 |
2 files changed, 5 insertions, 5 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 ); diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index 87e0291730cd..f6f338972886 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -293,7 +293,7 @@ public: sal_uInt16 nCurrFormat, bool bBank ); /// General Unicode Euro symbol - static sal_Unicode GetEuroSymbol() { return sal_Unicode(0x20AC); } + static sal_Unicode GetEuroSymbol() { return u'\x20AC'; } }; typedef std::vector< OUString > NfWSStringsDtor; |