summaryrefslogtreecommitdiff
path: root/unotools/source/ucbhelper
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-11 12:30:29 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 14:58:09 +0200
commit39b8ce7081888b5d5e73ba0b49396b09ca7f3b61 (patch)
tree7cc487f86ae010b9e3bdf8dd2e8e0b481962d71d /unotools/source/ucbhelper
parenta75596f3f8d3660bd96a107eb13a2ea210be5b66 (diff)
Simplify Sequences initializations (unotools)
Change-Id: Ibc5deee4b69213310a75c2a74a800d99bc451424 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117047 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'unotools/source/ucbhelper')
-rw-r--r--unotools/source/ucbhelper/ucbhelper.cxx5
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx4
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);