diff options
Diffstat (limited to 'unotools/source/ucbhelper')
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 5 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index 993cf8c8908f..f91fac4e921b 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -227,10 +227,7 @@ bool utl::UCBContentHelper::MakeFolder( { continue; } - css::uno::Sequence<OUString> keys { "Title" }; - css::uno::Sequence<css::uno::Any> values(1); - values[0] <<= title; - if (parent.insertNewContent(rInfo.Type, keys, values, result)) + if (parent.insertNewContent(rInfo.Type, { "Title" }, { css::uno::Any(title) }, result)) { return true; } diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index a02652290b6a..d3e090cae679 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -740,13 +740,11 @@ static bool UCBOpenContentSync( request <<= aExcep; rtl::Reference<ucbhelper::InteractionRequest> xIR = new ucbhelper::InteractionRequest(request); - Sequence<Reference<XInteractionContinuation> > aSeq(2); rtl::Reference<ucbhelper::InteractionRetry> retryP = new ucbhelper::InteractionRetry(xIR.get()); - aSeq[0] = retryP; rtl::Reference<ucbhelper::InteractionAbort> abortP = new ucbhelper::InteractionAbort(xIR.get()); - aSeq[1] = abortP; + Sequence<Reference<XInteractionContinuation> > aSeq { retryP, abortP }; xIR->setContinuations(aSeq); xInteract->handle(xIR); |