From 479151c6e194bdf40a0c15a0676460eb94293601 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 4 Oct 2019 08:44:11 +0200 Subject: Convert FSNS macro to constexpr function Change-Id: I823305cdf746098762b77a53c5b93035cda7ec6f Reviewed-on: https://gerrit.libreoffice.org/80176 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- include/sax/fshelper.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sax') diff --git a/include/sax/fshelper.hxx b/include/sax/fshelper.hxx index 7876e48a6c6c..8169ce5ea166 100644 --- a/include/sax/fshelper.hxx +++ b/include/sax/fshelper.hxx @@ -30,7 +30,7 @@ namespace com { namespace sun { namespace star { namespace io { class XOutputStream; } } } } namespace sax_fastparser { class FastAttributeList; } -#define FSNS(namespc, element) ((namespc << 16) | element) +constexpr sal_Int32 FSNS(sal_Int32 namespc, sal_Int32 element) { return (namespc << 16) | element; } namespace sax_fastparser { -- cgit