diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-09-02 08:23:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-02 13:04:49 +0200 |
commit | fae405c522ce95bdfaedcbcae407226b4e1c487d (patch) | |
tree | 9c4a1d7e9531df84a89d8fe6535dde6244447582 /framework | |
parent | 7da4e0b7f28042b143f532f987b99e4018ef3531 (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')
-rw-r--r-- | framework/source/interaction/quietinteraction.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/desktop.cxx | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx index d9427c0f5529..580f42b0caeb 100644 --- a/framework/source/services/desktop.cxx +++ b/framework/source/services/desktop.cxx @@ -1269,7 +1269,7 @@ void SAL_CALL Desktop::handle( const css::uno::Reference< css::task::XInteractio css::task::ErrorCodeRequest aErrorCodeRequest; if( aRequest >>= aErrorCodeRequest ) { - bool bWarning = ((aErrorCodeRequest.ErrCode & ERRCODE_WARNING_MASK) == ERRCODE_WARNING_MASK); + bool bWarning = ErrCode(aErrorCodeRequest.ErrCode).IsWarning(); if (xApprove.is() && bWarning) xApprove->select(); else |