summaryrefslogtreecommitdiff
path: root/include/svtools/soerr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-09 08:52:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 08:42:30 +0200
commit528632660b72b105345945c13c5b68060d94a91b (patch)
tree860508d482959abeb9175f0ce6b9e65954269f95 /include/svtools/soerr.hxx
parentaee66aa85e75f67135e5c6079a281e18402d261a (diff)
convert ErrCode to strong typedef
would have preferred to re-use o3tl::strong_int, of which this is a modified copy, but there are lots of convenience accessors which are nice to define on the class. Change-Id: I301b807aaf02fbced3bf75de1e1692cde6c0340a Reviewed-on: https://gerrit.libreoffice.org/38497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools/soerr.hxx')
-rw-r--r--include/svtools/soerr.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/svtools/soerr.hxx b/include/svtools/soerr.hxx
index 7dc3347f3598..dfc1b88f3ed8 100644
--- a/include/svtools/soerr.hxx
+++ b/include/svtools/soerr.hxx
@@ -24,15 +24,15 @@
// error codes
#define RID_SO_ERROR_HANDLER 32000
-#define SO_ERR() (ERRCODE_AREA_SO | ERRCODE_CLASS_SO)
-#define SO_WRN() (ERRCODE_AREA_SO | ERRCODE_CLASS_SO | ERRCODE_WARNING_MASK)
-
-#define ERRCODE_SO_GENERALERROR (SO_ERR() | 1)
-#define ERRCODE_SO_FALSE (SO_WRN() | 23)
-#define ERRCODE_SO_PENDING (SO_ERR() | 25)
-#define ERRCODE_SO_CANNOT_DOVERB_NOW (SO_WRN() | 28)
-#define ERRCODE_SO_NOVERBS (SO_ERR() | 30)
-#define ERRCODE_SO_NOTIMPL (SO_ERR() | 33)
+#define SO_ERR(x) ErrCode(ERRCODE_AREA_SO | ERRCODE_CLASS_SO | x)
+#define SO_WRN(x) ErrCode(ERRCODE_AREA_SO | ERRCODE_CLASS_SO | ERRCODE_WARNING_MASK | x)
+
+#define ERRCODE_SO_GENERALERROR SO_ERR(1)
+#define ERRCODE_SO_FALSE SO_WRN(23)
+#define ERRCODE_SO_PENDING SO_ERR(25)
+#define ERRCODE_SO_CANNOT_DOVERB_NOW SO_WRN(28)
+#define ERRCODE_SO_NOVERBS SO_ERR(30)
+#define ERRCODE_SO_NOTIMPL SO_ERR(33)
// error contexts
#define RID_SO_ERRCTX 32001