include/oox/export/utils.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit dde903aeb0e495c04b23e2169b3e733549f438af Author: Caolán McNamara <caol...@redhat.com> Date: Fri Jul 7 09:23:16 2017 +0100 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 <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> 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 )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits