summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-23 13:42:44 +0200
committerNoel Grandin <noel@peralex.com>2016-09-26 08:29:38 +0200
commit7f97b5e72c61066ea1ddd0f782e50070ce5f6363 (patch)
tree410d4ff48adff9a3ec535e96efe8240d660f0a05 /sc
parent69c29c9f895fa58c923af5e6dee1226f8bbfeceb (diff)
convert CONTINUATION constants to typed_flags_set
Change-Id: I38333e5d229aa520fbe0a8ad72007c503853956e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/warnpassword.cxx20
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;
}