summaryrefslogtreecommitdiff
path: root/framework/source/services/dispatchhelper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-21 19:54:16 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-21 22:40:30 +0200
commit5c783662b9eff425ecb1661f2de18ccaa1b1943c (patch)
tree94edda46419a34abcef65198a6785ca1547e8be3 /framework/source/services/dispatchhelper.cxx
parenta97efa53de6037d4603582e10e6dd7818f2dd3a1 (diff)
cid#1556239 Use of auto that causes a copy
and cid#1557287 Use of auto that causes a copy cid#1558003 Use of auto that causes a copy cid#1557568 Use of auto that causes a copy cid#1556546 Use of auto that causes a copy cid#1557377 Use of auto that causes a copy cid#1608325 Use of auto that causes a copy Change-Id: I84e59d2b14bb1e5856f9cac521ad6542b1784243 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170821 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'framework/source/services/dispatchhelper.cxx')
-rw-r--r--framework/source/services/dispatchhelper.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/source/services/dispatchhelper.cxx b/framework/source/services/dispatchhelper.cxx
index 109ceb0c6c7d..b743e5b5ba4d 100644
--- a/framework/source/services/dispatchhelper.cxx
+++ b/framework/source/services/dispatchhelper.cxx
@@ -113,9 +113,10 @@ css::uno::Any SAL_CALL DispatchHelper::executeDispatch(
bool bOnMainThread = aDescriptor.getUnpackedValueOrDefault(u"OnMainThread"_ustr, false);
if (bOnMainThread)
- return vcl::solarthread::syncExecute([this, &xDispatch, &aURL, &lArguments]() {
- return executeDispatch(xDispatch, aURL, true, lArguments);
- });
+ return vcl::solarthread::syncExecute(
+ [this, &xDispatch, &aURL, &lArguments]() -> css::uno::Any {
+ return executeDispatch(xDispatch, aURL, true, lArguments);
+ });
else
return executeDispatch(xDispatch, aURL, true, lArguments);
}