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 /ucb | |
parent | 69c29c9f895fa58c923af5e6dee1226f8bbfeceb (diff) |
convert CONTINUATION constants to typed_flags_set
Change-Id: I38333e5d229aa520fbe0a8ad72007c503853956e
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavcontent.cxx | 11 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavcontent.cxx | 10 |
2 files changed, 10 insertions, 11 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 790349d5f6e2..c141e269a78b 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -2586,25 +2586,24 @@ void Content::insert( rtl::Reference< ucbhelper::SimpleInteractionRequest > xRequest = new ucbhelper::SimpleInteractionRequest( aExAsAny, - ucbhelper::CONTINUATION_APPROVE - | ucbhelper::CONTINUATION_DISAPPROVE ); + ContinuationFlags::Approve | ContinuationFlags::Disapprove ); xIH->handle( xRequest.get() ); - const sal_Int32 nResp = xRequest->getResponse(); + const ContinuationFlags nResp = xRequest->getResponse(); switch ( nResp ) { - case ucbhelper::CONTINUATION_UNKNOWN: + case ContinuationFlags::NONE: // Not handled; throw. throw aEx; // break; - case ucbhelper::CONTINUATION_APPROVE: + case ContinuationFlags::Approve: // Continue -> Overwrite. bReplaceExisting = true; break; - case ucbhelper::CONTINUATION_DISAPPROVE: + case ContinuationFlags::Disapprove: // Abort. throw ucb::CommandFailedException( OUString(), diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index d549d7a3a1c6..f01598a7185c 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -2435,25 +2435,25 @@ void Content::insert( rtl::Reference< ucbhelper::SimpleInteractionRequest > xRequest = new ucbhelper::SimpleInteractionRequest( aExAsAny, - ucbhelper::CONTINUATION_APPROVE - | ucbhelper::CONTINUATION_DISAPPROVE ); + ContinuationFlags::Approve + | ContinuationFlags::Disapprove ); xIH->handle( xRequest.get() ); const sal_Int32 nResp = xRequest->getResponse(); switch ( nResp ) { - case ucbhelper::CONTINUATION_UNKNOWN: + case ContinuationFlags::NONE: // Not handled; throw. throw aEx; // break; - case ucbhelper::CONTINUATION_APPROVE: + case ContinuationFlags::Approve: // Continue -> Overwrite. bReplaceExisting = true; break; - case ucbhelper::CONTINUATION_DISAPPROVE: + case ContinuationFlags::Disapprove: // Abort. throw ucb::CommandFailedException( OUString(), |