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

Noel Grandin noel.grandin at collabora.co.uk
Sun Jun 25 15:19:06 UTC 2017


 include/vcl/errcode.hxx |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 49ecd18fe233a6e60806d023ae06583471cb233c
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Jun 23 09:50:05 2017 +0200

    fix constants used before definition
    
    ERRCODE_AREA_SO and ERRCODE_AREA_SBX were being referenced before their
    definition., by ERRCODE_AREA_SVX_END and ERRCODE_AREA_SO_END
    
    Change-Id: I51af1752290479adf0985746253134a0924b1e17
    Reviewed-on: https://gerrit.libreoffice.org/39150
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx
index da83195b9c73..05e88a2d94dc 100644
--- a/include/vcl/errcode.hxx
+++ b/include/vcl/errcode.hxx
@@ -150,21 +150,21 @@ inline std::ostream& operator<<(std::ostream& os, const ErrCode& err)
 #define ERRCODE_AREA_INET                (3   << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_VCL                 (4   << ERRCODE_AREA_SHIFT)
 
-#define ERRCODE_AREA_SVX                 (8   << ERRCODE_AREA_SHIFT)
-#define ERRCODE_AREA_SVX_END             (ERRCODE_AREA_SO-1)
-#define ERRCODE_AREA_SO                  (9   << ERRCODE_AREA_SHIFT)
-#define ERRCODE_AREA_SO_END              (ERRCODE_AREA_SBX-1)
-#define ERRCODE_AREA_SBX                 (10   << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_SVX                 (  8  << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_SVX_END             (( 9  << ERRCODE_AREA_SHIFT) - 1)
+#define ERRCODE_AREA_SO                  (  9  << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_SO_END              ((10  << ERRCODE_AREA_SHIFT) - 1)
+#define ERRCODE_AREA_SBX                 ( 10  << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_SBX_END             ((11  << ERRCODE_AREA_SHIFT) - 1)
-#define ERRCODE_AREA_DB                  (11   << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_DB                  ( 11  << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_DB_END              ((12  << ERRCODE_AREA_SHIFT) - 1)
-#define ERRCODE_AREA_JAVA                (12  << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_JAVA                ( 12  << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_JAVA_END            ((13  << ERRCODE_AREA_SHIFT) - 1)
-#define ERRCODE_AREA_UUI                 (13  << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_UUI                 ( 13  << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_UUI_END             ((14  << ERRCODE_AREA_SHIFT) - 1)
-#define ERRCODE_AREA_LIB2                (14  << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_LIB2                ( 14  << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_LIB2_END            ((15  << ERRCODE_AREA_SHIFT) - 1)
-#define ERRCODE_AREA_CHAOS               (15  << ERRCODE_AREA_SHIFT)
+#define ERRCODE_AREA_CHAOS               ( 15  << ERRCODE_AREA_SHIFT)
 #define ERRCODE_AREA_CHAOS_END           ((16  << ERRCODE_AREA_SHIFT) - 1)
 
 #define ERRCODE_AREA_APP1                (32 << ERRCODE_AREA_SHIFT)


More information about the Libreoffice-commits mailing list