summaryrefslogtreecommitdiff
path: root/include/vcl/errcode.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-08-12 20:30:37 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-08-13 00:18:20 +0200
commitbec5a2ac82b5178f6e765494c2003febe8ab51da (patch)
tree2c8897f0c0a6bc7504dee4b8694990073a80b028 /include/vcl/errcode.hxx
parent3e0b1754a7878d34604dbdd589855f546ca158bd (diff)
fix ErrCode::MakeWarning
regression from commit 528632660b72b105345945c13c5b68060d94a91b "convert ErrCode to strong typedef" Change-Id: If4827f81b142e3e67c4c36bc0505012cf0880f37 Reviewed-on: https://gerrit.libreoffice.org/41096 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'include/vcl/errcode.hxx')
-rw-r--r--include/vcl/errcode.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/errcode.hxx b/include/vcl/errcode.hxx
index 2563c12ab957..fb9018466c18 100644
--- a/include/vcl/errcode.hxx
+++ b/include/vcl/errcode.hxx
@@ -88,7 +88,7 @@ public:
}
ErrCode MakeWarning() const {
- return ErrCode(m_value & ERRCODE_WARNING_MASK);
+ return ErrCode(m_value | ERRCODE_WARNING_MASK);
}
bool IsError() {