diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 09:50:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 17:18:45 +0200 |
commit | 49ecd18fe233a6e60806d023ae06583471cb233c (patch) | |
tree | af4bf96caca1a4b69d3253f5391c3d4c844f973d /include | |
parent | 8222d14cb5fc8f7b46e068b4b3f86cc867e05972 (diff) |
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@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/errcode.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
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) |