[Libreoffice-commits] core.git: 2 commits - connectivity/inc connectivity/source extensions/source
Michael Stahl
mstahl at redhat.com
Wed Feb 3 10:15:54 UTC 2016
connectivity/inc/pch/precompiled_dbtools.hxx | 1 -
connectivity/source/parse/sqlnode.cxx | 3 +--
extensions/source/propctrlr/standardcontrol.cxx | 6 ++----
3 files changed, 3 insertions(+), 7 deletions(-)
New commits:
commit 8c279f01597cea9850ab68add6fa3370eb61c1b2
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Feb 2 15:47:41 2016 +0100
extensions: replace boost::bind with lambda
Change-Id: I3f0b1835aac20cfd1c149caa122bed1cc96d699e
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index f01e8f3..25e4bd4 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -48,7 +48,6 @@
#include <cstdlib>
#include <limits>
-#include <boost/bind.hpp>
#include <memory>
@@ -464,9 +463,8 @@ namespace pcr
{
ActionEvent aEvent( *this, OUString( "clicked" ) );
m_aActionListeners.forEach< XActionListener >(
- boost::bind(
- &XActionListener::actionPerformed,
- _1, boost::cref(aEvent) ) );
+ [this, &aEvent] (uno::Reference<awt::XActionListener> const& xListener)
+ { return xListener->actionPerformed(aEvent); });
}
commit bf253799f6858aa1ab607b8f127c0ed6bd2c1b45
Author: Michael Stahl <mstahl at redhat.com>
Date: Tue Feb 2 15:44:14 2016 +0100
connectivity: replace boost::bind with lambda
Change-Id: I5a68b743221a3519701e4e3778562ae626783e0f
diff --git a/connectivity/inc/pch/precompiled_dbtools.hxx b/connectivity/inc/pch/precompiled_dbtools.hxx
index 3babfec..31b04ad 100644
--- a/connectivity/inc/pch/precompiled_dbtools.hxx
+++ b/connectivity/inc/pch/precompiled_dbtools.hxx
@@ -37,7 +37,6 @@
#include <string>
#include <utility>
#include <vector>
-#include <boost/bind.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include <boost/type_traits.hpp>
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 7f7fdeb..7ba07e6 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -53,7 +53,6 @@
#include <connectivity/dbmetadata.hxx>
#include <tools/diagnose_ex.h>
#include <string.h>
-#include <boost/bind.hpp>
#include <algorithm>
#include <functional>
#include <memory>
@@ -713,7 +712,7 @@ void OSQLParseNode::impl_parseTableRangeNodeToString_throw(OUStringBuffer& rStri
// rString += " ";
::std::for_each(m_aChildren.begin(),m_aChildren.end(),
- boost::bind( &OSQLParseNode::impl_parseNodeToString_throw, _1, boost::ref( rString ), boost::cref( rParam ), false ));
+ [&] (OSQLParseNode *const pNode) { pNode->impl_parseNodeToString_throw(rString, rParam, false); });
}
More information about the Libreoffice-commits
mailing list