diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-23 13:42:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-26 08:29:38 +0200 |
commit | 7f97b5e72c61066ea1ddd0f782e50070ce5f6363 (patch) | |
tree | 410d4ff48adff9a3ec535e96efe8240d660f0a05 /sc | |
parent | 69c29c9f895fa58c923af5e6dee1226f8bbfeceb (diff) |
convert CONTINUATION constants to typed_flags_set
Change-Id: I38333e5d229aa520fbe0a8ad72007c503853956e
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/warnpassword.cxx | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sc/source/ui/unoobj/warnpassword.cxx b/sc/source/ui/unoobj/warnpassword.cxx index b35a81cd561c..c69303137f6d 100644 --- a/sc/source/ui/unoobj/warnpassword.cxx +++ b/sc/source/ui/unoobj/warnpassword.cxx @@ -52,26 +52,14 @@ bool ScWarnPassword::WarningOnPassword( SfxMedium& rMedium ) rtl::Reference< ucbhelper::SimpleInteractionRequest > xRequest = new ucbhelper::SimpleInteractionRequest( aException, - ucbhelper::CONTINUATION_APPROVE - | ucbhelper::CONTINUATION_DISAPPROVE ); + ContinuationFlags::Approve | ContinuationFlags::Disapprove ); xHandler->handle( xRequest.get() ); - const sal_Int32 nResp = xRequest->getResponse(); + const ContinuationFlags nResp = xRequest->getResponse(); - switch ( nResp ) - { - case ucbhelper::CONTINUATION_UNKNOWN: - break; - - case ucbhelper::CONTINUATION_APPROVE: - // Continue - break; - - case ucbhelper::CONTINUATION_DISAPPROVE: - bReturn = false; - break; - } + if ( nResp == ContinuationFlags::Disapprove ) + bReturn = false; } return bReturn; } |