diff options
author | Daniel Robertson <danlrobertson89@gmail.com> | 2015-09-05 18:35:35 -0400 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-07 07:18:33 +0000 |
commit | 899c21ce5db0f4c3ad0bb6c9680e147f578b0894 (patch) | |
tree | f3b30afd828ee10df5205c57aaf69b0501bcace2 /dbaccess/source/ui/control/RelationControl.cxx | |
parent | 3536eab550628ff4e07442066b7d1893519c03db (diff) |
dbaccess: replace for_each with range-based for
Replace complex uses of ::std::for_each with a range-based for-loop.
Change-Id: I82331f16cc1994dd9ef36eb80d67b64171cecc74
Reviewed-on: https://gerrit.libreoffice.org/18355
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/ui/control/RelationControl.cxx')
-rw-r--r-- | dbaccess/source/ui/control/RelationControl.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dbaccess/source/ui/control/RelationControl.cxx b/dbaccess/source/ui/control/RelationControl.cxx index d1603a2a1628..20c906f96441 100644 --- a/dbaccess/source/ui/control/RelationControl.cxx +++ b/dbaccess/source/ui/control/RelationControl.cxx @@ -35,7 +35,6 @@ #include "dbaccess_helpid.hrc" #include <osl/diagnose.h> -#include <algorithm> #include <list> using std::list; #include <utility> @@ -405,10 +404,10 @@ namespace dbaui { // no connection found so we clear our data OConnectionLineDataVec& rLines = m_pConnData->GetConnLineDataList(); - ::std::for_each(rLines.begin(), - rLines.end(), - OUnaryRefFunctor<OConnectionLineData>( ::std::mem_fun(&OConnectionLineData::Reset)) - ); + for( const auto& rLine : rLines ) + { + rLine.get()->Reset(); + } m_pConnData->setReferencingTable(_pSource->GetData()); m_pConnData->setReferencedTable(_pDest->GetData()); |