[Libreoffice-commits] core.git: include/sax

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 4 07:39:50 UTC 2019


 include/sax/fshelper.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 479151c6e194bdf40a0c15a0676460eb94293601
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Oct 4 08:44:11 2019 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Oct 4 09:39:15 2019 +0200

    Convert FSNS macro to constexpr function
    
    Change-Id: I823305cdf746098762b77a53c5b93035cda7ec6f
    Reviewed-on: https://gerrit.libreoffice.org/80176
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

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 {
 


More information about the Libreoffice-commits mailing list