diff options
Diffstat (limited to 'project2/sql/sqlWriter.cpp')
-rw-r--r-- | project2/sql/sqlWriter.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/project2/sql/sqlWriter.cpp b/project2/sql/sqlWriter.cpp index cd9108d..f654636 100644 --- a/project2/sql/sqlWriter.cpp +++ b/project2/sql/sqlWriter.cpp @@ -1,7 +1,6 @@ #include <pch.hpp> #include "sqlWriter.h" #include "scripts.h" -#include <boost/foreach.hpp> #include <boost/bind.hpp> #include "sqlVariableBinder.h" @@ -47,7 +46,7 @@ DynamicSql::SqlCommand::SqlCommand(ScriptNodePtr s) Glib::ustring DynamicSql::SqlCommand::getSqlFor(const Glib::ustring & f) const { - BOOST_FOREACH(const SqlCommand::Filters::value_type & filter, filters) { + for (const SqlCommand::Filters::value_type & filter : filters) { filter.second->active = (filter.second->name == f); } Buffer sql; @@ -58,7 +57,7 @@ DynamicSql::SqlCommand::getSqlFor(const Glib::ustring & f) const void DynamicSql::SqlCommand::writeSql(Buffer & sql) const { - BOOST_FOREACH(const SqlWriterPtr & w, writers) { + for (const SqlWriterPtr & w : writers) { w->writeSql(sql); } } @@ -66,7 +65,7 @@ DynamicSql::SqlCommand::writeSql(Buffer & sql) const void DynamicSql::SqlCommand::bindParams(ExecContext * ec, DB::Command * cmd, unsigned int & offset) const { - BOOST_FOREACH(const SqlWriterPtr & w, writers) { + for (const SqlWriterPtr & w : writers) { w->bindParams(ec, cmd, offset); } } @@ -84,7 +83,7 @@ void DynamicSql::SqlFilter::writeSql(Buffer & sql) const { if (active) { - BOOST_FOREACH(const SqlWriterPtr & w, writers) { + for (const SqlWriterPtr & w : writers) { w->writeSql(sql); } } @@ -94,7 +93,7 @@ void DynamicSql::SqlFilter::bindParams(ExecContext * ec, DB::Command * cmd, unsigned int & offset) const { if (active) { - BOOST_FOREACH(const SqlWriterPtr & w, writers) { + for (const SqlWriterPtr & w : writers) { w->bindParams(ec, cmd, offset); } } |