summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-07 14:28:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-11 15:33:28 +0200
commit81fd3bb4d76a0e57a4e8464cb1c5813115ea28f3 (patch)
tree35f9c68537045403fe9deb514c7cc8b0672f4442 /vcl
parent06f99cd5520fa431ffb74ca5dd4691e892715657 (diff)
loplugin:redundantfcast check for std::function cast
noticed by mike kaganski Change-Id: I210f6d2655edde74d9256c6147b7d15a88180196 Reviewed-on: https://gerrit.libreoffice.org/78743 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qt5/Qt5Instance.cxx2
-rw-r--r--vcl/unx/kf5/KF5SalInstance.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx
index 86c94ba792de..64481b64108e 100644
--- a/vcl/qt5/Qt5Instance.cxx
+++ b/vcl/qt5/Qt5Instance.cxx
@@ -413,7 +413,7 @@ Qt5Instance::createPicker(css::uno::Reference<css::uno::XComponentContext> const
{
SolarMutexGuard g;
Qt5FilePicker* pPicker;
- RunInMainThread(std::function([&, this]() { pPicker = createPicker(context, eMode); }));
+ RunInMainThread([&, this]() { pPicker = createPicker(context, eMode); });
assert(pPicker);
return pPicker;
}
diff --git a/vcl/unx/kf5/KF5SalInstance.cxx b/vcl/unx/kf5/KF5SalInstance.cxx
index da4906a70a49..5b95ff8df572 100644
--- a/vcl/unx/kf5/KF5SalInstance.cxx
+++ b/vcl/unx/kf5/KF5SalInstance.cxx
@@ -43,9 +43,9 @@ KF5SalInstance::KF5SalInstance(std::unique_ptr<QApplication>& pQApp)
SalFrame* KF5SalInstance::CreateFrame(SalFrame* pParent, SalFrameStyleFlags nState)
{
SalFrame* pRet(nullptr);
- RunInMainThread(std::function([&pRet, pParent, nState]() {
+ RunInMainThread([&pRet, pParent, nState]() {
pRet = new KF5SalFrame(static_cast<KF5SalFrame*>(pParent), nState, true);
- }));
+ });
assert(pRet);
return pRet;
}
@@ -65,7 +65,7 @@ KF5SalInstance::createPicker(css::uno::Reference<css::uno::XComponentContext> co
{
SolarMutexGuard g;
Qt5FilePicker* pPicker;
- RunInMainThread(std::function([&, this]() { pPicker = createPicker(context, eMode); }));
+ RunInMainThread([&, this]() { pPicker = createPicker(context, eMode); });
assert(pPicker);
return pPicker;
}