diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-07 09:23:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-07 12:07:59 +0200 |
commit | dde903aeb0e495c04b23e2169b3e733549f438af (patch) | |
tree | cd26eca5abe67e7bd52a4dc1670ff3a93be5892d /include/oox | |
parent | a75477101510e7a8e60db03edbf2d253f504d70d (diff) |
turn BS macro into an inline
maybe this will clear coverity#1413007 Out-of-bounds access
Change-Id: I26a0d83df543c1e9dab98b0f1219dadef5c8502d
Reviewed-on: https://gerrit.libreoffice.org/39679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/export/utils.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oox/export/utils.hxx b/include/oox/export/utils.hxx index a66941f9dc07..05ee6a750281 100644 --- a/include/oox/export/utils.hxx +++ b/include/oox/export/utils.hxx @@ -29,7 +29,7 @@ inline OString I64S_(sal_Int64 x) { return OString::number(x); } #define I32S(x) I32S_(x).getStr() #define I64S(x) I64S_(x).getStr() #define IS(x) OString::number( x ).getStr() -#define BS(x) (x ? "1":"0") +inline const char* BS(bool x) { return x ? "1" : "0"; } #define USS(x) OUStringToOString( x, RTL_TEXTENCODING_UTF8 ).getStr() static inline sal_Int64 PPTtoEMU( sal_Int32 nPPT ) |