summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-09-02 08:23:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-02 13:04:49 +0200
commitfae405c522ce95bdfaedcbcae407226b4e1c487d (patch)
tree9c4a1d7e9531df84a89d8fe6535dde6244447582 /include
parent7da4e0b7f28042b143f532f987b99e4018ef3531 (diff)
use more ErrCode.IsWarning()
Change-Id: I92a84cbe3d9a9e794d3e875c60d8db7cb40ae5bd Reviewed-on: https://gerrit.libreoffice.org/41827 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.hxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx
index 274a4a00ef03..6b6ffdede306 100644
--- a/include/vcl/errcode.hxx
+++ b/include/vcl/errcode.hxx
@@ -46,7 +46,6 @@ Warning || || |
#define ERRCODE_ERROR_MASK 0x3fffffffUL
#define ERRCODE_WARNING_MASK 0x80000000UL
-#define ERRCODE_RES_MASK 0x7fff
#define ERRCODE_CLASS_SHIFT 8
#define ERRCODE_AREA_SHIFT 13
@@ -54,7 +53,6 @@ Warning || || |
#define ERRCODE_CLASS_MASK (31UL << ERRCODE_CLASS_SHIFT)
-#define ERRCODE_DYNAMIC_START ( 1UL << ERRCODE_DYNAMIC_SHIFT)
#define ERRCODE_DYNAMIC_COUNT 31UL
#define ERRCODE_DYNAMIC_MASK (31UL << ERRCODE_DYNAMIC_SHIFT)
@@ -127,7 +125,7 @@ public:
}
constexpr sal_uInt16 GetRest() const {
- return m_value & ERRCODE_RES_MASK;
+ return m_value & 0x7fff;
}
OUString toHexString() const {