diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-02-27 15:06:45 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-02-28 10:12:21 +0100 |
commit | bf75515989a5dfda613b1047977648288d941a85 (patch) | |
tree | be5d07b4b361c0e21708d874a9f8eef4dad5ed76 /sfx2/source/doc | |
parent | 68008da159f5be16a5dcc67a27c3442add86e1c1 (diff) |
Use lambda instead of std::bind + wrapper function
Change-Id: I7d51d09b78297442d07dd4ecbab7b5ce38d8ffee
Reviewed-on: https://gerrit.libreoffice.org/68447
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 7740b5c1a41a..1bc11c4f00e1 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -1505,16 +1505,6 @@ static bool SaveImplStatic(SfxObjectShell* pThis, const SfxItemSet* pParams) return pThis->Save_Impl(pParams); } -/** - * Proxy around SfxBaseModel::impl_store(), as vcl::solarthread::syncExecute() - * does not seem to accept lambdas or void functions. - */ -static bool ImplStoreStatic(SfxBaseModel* pThis, const OUString& rURL, - const uno::Sequence<beans::PropertyValue>& rArgs, bool bSaveTo) -{ - pThis->impl_store(rURL, rArgs, bSaveTo); - return true; -} // XStorable2 @@ -1704,7 +1694,7 @@ void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL utl::MediaDescriptor aDescriptor(rArgs); bool bOnMainThread = aDescriptor.getUnpackedValueOrDefault("OnMainThread", false); if (bOnMainThread) - vcl::solarthread::syncExecute(std::bind(&ImplStoreStatic, this, rURL, rArgs, true)); + vcl::solarthread::syncExecute([this, rURL, rArgs]() { impl_store(rURL, rArgs, true); }); else impl_store(rURL, rArgs, true); } |