diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:19:55 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-01 08:23:16 +0100 |
commit | 5e7e62b937721850ff762c063e9e58c58ce2fb80 (patch) | |
tree | e1646f71285b049e4852abde2b323fe608d0a3fa /ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx | |
parent | cae7b855a5fd479e6df822f974870f42e91ce068 (diff) |
Prepare for removal of non-const operator[] from Sequence in ucb
Change-Id: I16f3de8398323a308e20d04643a11dd9c3ec59f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124404
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx index fe853d84c45b..b190ba1884d8 100644 --- a/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx +++ b/ucb/source/ucp/tdoc/tdoc_passwordrequest.cxx @@ -179,10 +179,11 @@ DocumentPasswordRequest::DocumentPasswordRequest( // Fill continuations... uno::Sequence< - uno::Reference< task::XInteractionContinuation > > aContinuations( 3 ); - aContinuations[ 0 ] = new ucbhelper::InteractionAbort( this ); - aContinuations[ 1 ] = new ucbhelper::InteractionRetry( this ); - aContinuations[ 2 ] = new InteractionSupplyPassword( this ); + uno::Reference< task::XInteractionContinuation > > aContinuations{ + new ucbhelper::InteractionAbort( this ), + new ucbhelper::InteractionRetry( this ), + new InteractionSupplyPassword( this ) + }; setContinuations( aContinuations ); } |