summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-01 08:57:13 +0200
committerNoel Grandin <noel@peralex.com>2016-02-01 10:13:30 +0200
commit5805be0b349ebb1be6a3613368bffc63644b1c84 (patch)
tree0c9ae96ee416d3db684279bdc53aba54d5157490 /dbaccess
parent0dfcb858c1e863f6df225ae774bb567f8cfe00c9 (diff)
boost::mem_fn->std::mem_fn in dbaccess
Change-Id: I9156e106d12b670e94bab899a4f67a35701ae5ac
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/inc/pch/precompiled_dbu.hxx1
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx11
2 files changed, 4 insertions, 8 deletions
diff --git a/dbaccess/inc/pch/precompiled_dbu.hxx b/dbaccess/inc/pch/precompiled_dbu.hxx
index 7a6f7d313b81..84bdc63ed2d6 100644
--- a/dbaccess/inc/pch/precompiled_dbu.hxx
+++ b/dbaccess/inc/pch/precompiled_dbu.hxx
@@ -33,7 +33,6 @@
#include <vector>
#include <boost/bind.hpp>
#include <boost/intrusive_ptr.hpp>
-#include <boost/mem_fn.hpp>
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include <osl/diagnose.h>
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index 97fd96e8dc1d..fbdbe931cf27 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -67,9 +67,6 @@
#include <tools/diagnose_ex.h>
#include <vcl/layout.hxx>
-#include <boost/mem_fn.hpp>
-#include <boost/bind.hpp>
-
#include <algorithm>
#include <functional>
@@ -193,14 +190,14 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const
aReturn.bEnabled = true;
break;
case ID_BROWSER_SAVEDOC:
- aReturn.bEnabled = isEditable() && ::std::any_of(m_vRowList.begin(),m_vRowList.end(),::boost::mem_fn(&OTableRow::isValid));
+ aReturn.bEnabled = isEditable() && ::std::any_of(m_vRowList.begin(),m_vRowList.end(),::std::mem_fn(&OTableRow::isValid));
break;
case ID_BROWSER_SAVEASDOC:
aReturn.bEnabled = isConnected() && isEditable();
if ( aReturn.bEnabled )
{
aReturn.bEnabled = ::std::any_of(m_vRowList.begin(),m_vRowList.end(),
- ::boost::mem_fn(&OTableRow::isValid));
+ ::std::mem_fn(&OTableRow::isValid));
}
break;
@@ -223,7 +220,7 @@ FeatureState OTableController::GetState(sal_uInt16 _nId) const
if ( aReturn.bEnabled )
{
aReturn.bEnabled = ::std::any_of(m_vRowList.begin(),m_vRowList.end(),
- ::boost::mem_fn(&OTableRow::isValid));
+ ::std::mem_fn(&OTableRow::isValid));
}
break;
default:
@@ -552,7 +549,7 @@ sal_Bool SAL_CALL OTableController::suspend(sal_Bool /*_bSuspend*/) throw( Runti
if ( isModified() )
{
if ( ::std::any_of(m_vRowList.begin(),m_vRowList.end(),
- ::boost::mem_fn(&OTableRow::isValid)) )
+ ::std::mem_fn(&OTableRow::isValid)) )
{
ScopedVclPtrInstance<MessageDialog> aQry(getView(), "TableDesignSaveModifiedDialog",
"dbaccess/ui/tabledesignsavemodifieddialog.ui");