sw/inc/swtypes.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit db5918f5cdf95f6d47adb250265253c5a186a5c7 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu May 18 15:53:31 2017 +0200 Replace macro with function Change-Id: I41603579d71190b60e6b7c349b2296120757e4f2 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' _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits