diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 15:53:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-18 15:53:31 +0200 |
commit | db5918f5cdf95f6d47adb250265253c5a186a5c7 (patch) | |
tree | b7eaf1339ae036225408f838558ade37b2302755 | |
parent | 54ad4ef4f1d50bb4e4ce08b3600157471af2f565 (diff) |
Replace macro with function
Change-Id: I41603579d71190b60e6b7c349b2296120757e4f2
-rw-r--r-- | sw/inc/swtypes.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/swtypes.hxx b/sw/inc/swtypes.hxx index 2307091b98e4..9c40203b5402 100644 --- a/sw/inc/swtypes.hxx +++ b/sw/inc/swtypes.hxx @@ -179,7 +179,7 @@ namespace o3tl template<> struct typed_flags<SetAttrMode> : is_typed_flags<SetAttrMode, 0x1ff> {}; } -#define SW_ISPRINTABLE( c ) ( c >= ' ' && 127 != c ) +constexpr bool SW_ISPRINTABLE(sal_Unicode c) { return c >= ' ' && 127 != c; } #define CHAR_HARDBLANK u'\x00A0' #define CHAR_HARDHYPHEN u'\x2011' |