[Libreoffice-commits] core.git: sw/inc
Stephan Bergmann
sbergman at redhat.com
Thu May 18 13:54:22 UTC 2017
sw/inc/swtypes.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit db5918f5cdf95f6d47adb250265253c5a186a5c7
Author: Stephan Bergmann <sbergman at 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'
More information about the Libreoffice-commits
mailing list