summaryrefslogtreecommitdiff
path: root/framework/source/interaction
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 /framework/source/interaction
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 'framework/source/interaction')
-rw-r--r--framework/source/interaction/quietinteraction.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/interaction/quietinteraction.cxx b/framework/source/interaction/quietinteraction.cxx
index 0d2a7fb2f78d..10d96cd4d708 100644
--- a/framework/source/interaction/quietinteraction.cxx
+++ b/framework/source/interaction/quietinteraction.cxx
@@ -83,7 +83,7 @@ void SAL_CALL QuietInteraction::handle( const css::uno::Reference< css::task::XI
{
// warnings can be ignored => approve
// errors must break loading => abort
- bool bWarning = (aErrorCodeRequest.ErrCode & ERRCODE_WARNING_MASK) == ERRCODE_WARNING_MASK;
+ bool bWarning = ErrCode(aErrorCodeRequest.ErrCode).IsWarning();
if (xApprove.is() && bWarning)
xApprove->select();
else