[icinga-checkins] icinga.org: icinga2/feature/cxx11: Replace BOOST_FOREACH with range-based for loops

git at icinga.org git at icinga.org
Thu Aug 25 06:41:30 CEST 2016


Module: icinga2
Branch: feature/cxx11
Commit: 34e3b6c0a2e0a9c742086a80290a740a082feab4
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=34e3b6c0a2e0a9c742086a80290a740a082feab4

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Aug 25 06:19:44 2016 +0200

Replace BOOST_FOREACH with range-based for loops

fixes #12538

---

 icinga-app/icinga.cpp                      |    7 +-
 icinga-studio/mainform.cpp                 |   17 ++---
 lib/base/application.cpp                   |    5 +-
 lib/base/array-script.cpp                  |    9 ++-
 lib/base/array.cpp                         |    3 +-
 lib/base/array.hpp                         |   21 +-----
 lib/base/configobject.cpp                  |   27 ++++----
 lib/base/configtype.hpp                    |    3 +-
 lib/base/configwriter.cpp                  |    7 +-
 lib/base/context.cpp                       |    3 +-
 lib/base/dependencygraph.cpp               |    3 +-
 lib/base/dictionary-script.cpp             |    3 +-
 lib/base/dictionary.cpp                    |    7 +-
 lib/base/dictionary.hpp                    |   21 +-----
 lib/base/exception.cpp                     |    6 +-
 lib/base/filelogger.cpp                    |    2 +-
 lib/base/json.cpp                          |    5 +-
 lib/base/loader.cpp                        |    1 -
 lib/base/logger.cpp                        |    3 +-
 lib/base/math-script.cpp                   |    5 +-
 lib/base/object.cpp                        |    3 +-
 lib/base/process.cpp                       |    9 ++-
 lib/base/registry.hpp                      |    5 +-
 lib/base/scriptglobal.cpp                  |    3 +-
 lib/base/scriptutils.cpp                   |   11 ++--
 lib/base/serializer.cpp                    |   11 ++--
 lib/base/socketevents-epoll.cpp            |    3 +-
 lib/base/socketevents-poll.cpp             |    5 +-
 lib/base/socketevents.cpp                  |    1 -
 lib/base/string-script.cpp                 |    3 +-
 lib/base/string.hpp                        |   19 ++++++
 lib/base/sysloglogger.cpp                  |    2 +-
 lib/base/timer.cpp                         |    5 +-
 lib/base/type.cpp                          |    6 +-
 lib/base/utility.cpp                       |   29 ++++----
 lib/base/value-operators.cpp               |    5 +-
 lib/base/workqueue.cpp                     |    3 +-
 lib/checker/checkercomponent.cpp           |    3 +-
 lib/cli/apisetuputility.cpp                |    3 +-
 lib/cli/clicommand.cpp                     |   15 ++---
 lib/cli/daemoncommand.cpp                  |    1 -
 lib/cli/daemonutility.cpp                  |    2 +-
 lib/cli/featurelistcommand.cpp             |    1 -
 lib/cli/featureutility.cpp                 |    9 ++-
 lib/cli/nodeaddcommand.cpp                 |    1 -
 lib/cli/nodeblackandwhitelistcommand.cpp   |    1 -
 lib/cli/nodelistcommand.cpp                |    1 -
 lib/cli/noderemovecommand.cpp              |    3 +-
 lib/cli/nodesetcommand.cpp                 |    1 -
 lib/cli/nodesetupcommand.cpp               |    1 -
 lib/cli/nodeupdateconfigcommand.cpp        |   21 +++---
 lib/cli/nodeutility.cpp                    |   27 ++++----
 lib/cli/nodewizardcommand.cpp              |    1 -
 lib/cli/objectlistcommand.cpp              |    3 +-
 lib/cli/objectlistutility.cpp              |    7 +-
 lib/cli/repositoryobjectcommand.cpp        |    3 +-
 lib/cli/repositoryutility.cpp              |   21 +++---
 lib/cli/troubleshootcommand.cpp            |   11 ++--
 lib/cli/variablegetcommand.cpp             |    1 -
 lib/cli/variablelistcommand.cpp            |    1 -
 lib/compat/checkresultreader.cpp           |    2 +-
 lib/compat/compatlogger.cpp                |    7 +-
 lib/compat/externalcommandlistener.cpp     |    2 +-
 lib/compat/statusdatawriter.cpp            |   43 ++++++------
 lib/config/applyrule.cpp                   |    7 +-
 lib/config/config_parser.yy                |   12 ++--
 lib/config/configcompiler.cpp              |    5 +-
 lib/config/configcompilercontext.cpp       |    1 -
 lib/config/configitem.cpp                  |   35 +++++-----
 lib/config/configitembuilder.cpp           |    1 -
 lib/config/expression.cpp                  |   11 ++--
 lib/config/expression.hpp                  |   13 ++--
 lib/config/objectrule.cpp                  |    1 -
 lib/config/vmops.hpp                       |    9 ++-
 lib/db_ido/commanddbobject.cpp             |    1 -
 lib/db_ido/dbconnection.cpp                |    7 +-
 lib/db_ido/dbevents.cpp                    |    9 ++-
 lib/db_ido/dbobject.cpp                    |    7 +-
 lib/db_ido/dbtype.cpp                      |   12 ++--
 lib/db_ido/endpointdbobject.cpp            |    1 -
 lib/db_ido/hostdbobject.cpp                |   19 +++---
 lib/db_ido/hostgroupdbobject.cpp           |    1 -
 lib/db_ido/idochecktask.cpp                |    1 -
 lib/db_ido/servicedbobject.cpp             |   15 ++---
 lib/db_ido/servicegroupdbobject.cpp        |    1 -
 lib/db_ido/timeperioddbobject.cpp          |    5 +-
 lib/db_ido/userdbobject.cpp                |    3 +-
 lib/db_ido/usergroupdbobject.cpp           |    1 -
 lib/db_ido_mysql/idomysqlconnection.cpp    |   17 +++--
 lib/db_ido_pgsql/idopgsqlconnection.cpp    |   17 +++--
 lib/icinga/apiactions.cpp                  |    6 +-
 lib/icinga/apievents.cpp                   |   24 +++----
 lib/icinga/checkable-check.cpp             |    3 +-
 lib/icinga/checkable-comment.cpp           |    5 +-
 lib/icinga/checkable-dependency.cpp        |    9 ++-
 lib/icinga/checkable-downtime.cpp          |    9 ++-
 lib/icinga/checkable-flapping.cpp          |    1 -
 lib/icinga/checkable-notification.cpp      |    5 +-
 lib/icinga/checkable.cpp                   |    1 -
 lib/icinga/cib.cpp                         |   18 ++---
 lib/icinga/clusterevents.cpp               |   12 ++--
 lib/icinga/command.cpp                     |    5 +-
 lib/icinga/comment.cpp                     |    9 ++-
 lib/icinga/compatutility.cpp               |   36 +++++-----
 lib/icinga/customvarobject.cpp             |    2 +-
 lib/icinga/dependency-apply.cpp            |    9 ++-
 lib/icinga/dependency.cpp                  |    1 -
 lib/icinga/downtime.cpp                    |   11 ++--
 lib/icinga/externalcommandprocessor.cpp    |   99 ++++++++++++++--------------
 lib/icinga/host.cpp                        |    9 ++-
 lib/icinga/hostgroup.cpp                   |    5 +-
 lib/icinga/icingaapplication.cpp           |    2 +-
 lib/icinga/legacytimeperiod.cpp            |    7 +-
 lib/icinga/macroprocessor.cpp              |   27 ++++----
 lib/icinga/notification-apply.cpp          |    9 ++-
 lib/icinga/notification.cpp                |   11 ++--
 lib/icinga/pluginutility.cpp               |    7 +-
 lib/icinga/scheduleddowntime-apply.cpp     |    9 ++-
 lib/icinga/scheduleddowntime.cpp           |    9 ++-
 lib/icinga/service-apply.cpp               |    7 +-
 lib/icinga/service.cpp                     |    3 +-
 lib/icinga/servicegroup.cpp                |    5 +-
 lib/icinga/timeperiod.cpp                  |   25 ++++---
 lib/icinga/user.cpp                        |    5 +-
 lib/icinga/usergroup.cpp                   |    5 +-
 lib/livestatus/andfilter.cpp               |    3 +-
 lib/livestatus/attributefilter.cpp         |    3 +-
 lib/livestatus/commandstable.cpp           |   46 ++++++-------
 lib/livestatus/commentstable.cpp           |    3 +-
 lib/livestatus/contactgroupstable.cpp      |    5 +-
 lib/livestatus/contactstable.cpp           |   11 ++--
 lib/livestatus/downtimestable.cpp          |    3 +-
 lib/livestatus/endpointstable.cpp          |    3 +-
 lib/livestatus/hostgroupstable.cpp         |   63 +++++++++---------
 lib/livestatus/hoststable.cpp              |   61 +++++++++--------
 lib/livestatus/livestatuslistener.cpp      |    2 +-
 lib/livestatus/livestatuslogutility.cpp    |    6 +-
 lib/livestatus/livestatusquery.cpp         |   25 ++++---
 lib/livestatus/logtable.cpp                |    1 -
 lib/livestatus/orfilter.cpp                |    3 +-
 lib/livestatus/servicegroupstable.cpp      |   27 ++++----
 lib/livestatus/servicestable.cpp           |   35 +++++-----
 lib/livestatus/statehisttable.cpp          |    7 +-
 lib/livestatus/statustable.cpp             |   34 +++++-----
 lib/livestatus/table.cpp                   |    6 +-
 lib/livestatus/timeperiodstable.cpp        |    3 +-
 lib/livestatus/zonestable.cpp              |    5 +-
 lib/methods/clrchecktask.cpp               |    5 +-
 lib/methods/clusterchecktask.cpp           |    3 +-
 lib/methods/clusterzonechecktask.cpp       |    3 +-
 lib/methods/pluginchecktask.cpp            |    1 -
 lib/methods/plugineventtask.cpp            |    1 -
 lib/methods/pluginnotificationtask.cpp     |    1 -
 lib/notification/notificationcomponent.cpp |    5 +-
 lib/perfdata/gelfwriter.cpp                |    3 +-
 lib/perfdata/graphitewriter.cpp            |    7 +-
 lib/perfdata/influxdbwriter.cpp            |   15 ++---
 lib/perfdata/opentsdbwriter.cpp            |    7 +-
 lib/perfdata/perfdatawriter.cpp            |    2 +-
 lib/remote/actionshandler.cpp              |    2 +-
 lib/remote/apiclient.cpp                   |   19 +++---
 lib/remote/apilistener-configsync.cpp      |   19 +++---
 lib/remote/apilistener-filesync.cpp        |   17 +++--
 lib/remote/apilistener.cpp                 |   36 +++++-----
 lib/remote/apiuser.cpp                     |    2 +-
 lib/remote/authority.cpp                   |    7 +-
 lib/remote/configobjectutility.cpp         |    6 +-
 lib/remote/configpackageshandler.cpp       |    2 +-
 lib/remote/configpackageutility.cpp        |    5 +-
 lib/remote/configstageshandler.cpp         |    3 +-
 lib/remote/consolehandler.cpp              |   16 ++---
 lib/remote/deleteobjecthandler.cpp         |    2 +-
 lib/remote/endpoint.cpp                    |    1 -
 lib/remote/eventqueue.cpp                  |    4 +-
 lib/remote/eventshandler.cpp               |    3 +-
 lib/remote/filterutility.cpp               |   13 ++--
 lib/remote/httphandler.cpp                 |    6 +-
 lib/remote/httprequest.cpp                 |    3 +-
 lib/remote/httpserverconnection.cpp        |    2 +-
 lib/remote/httputility.cpp                 |    3 +-
 lib/remote/infohandler.cpp                 |    4 +-
 lib/remote/jsonrpcconnection-heartbeat.cpp |    5 +-
 lib/remote/jsonrpcconnection.cpp           |    6 +-
 lib/remote/modifyobjecthandler.cpp         |    4 +-
 lib/remote/objectqueryhandler.cpp          |   16 ++---
 lib/remote/statushandler.cpp               |    2 +-
 lib/remote/templatequeryhandler.cpp        |    4 +-
 lib/remote/typequeryhandler.cpp            |    6 +-
 lib/remote/url.cpp                         |   15 ++---
 lib/remote/variablequeryhandler.cpp        |    4 +-
 lib/remote/zone.cpp                        |    5 +-
 test/base-array.cpp                        |    3 +-
 test/base-dictionary.cpp                   |    3 +-
 test/base-fifo.cpp                         |    1 -
 test/base-json.cpp                         |    1 -
 test/base-serialize.cpp                    |    1 -
 test/base-stream.cpp                       |    1 -
 test/base-string.cpp                       |    3 +-
 test/base-timer.cpp                        |    1 -
 test/base-type.cpp                         |    1 -
 test/remote-base64.cpp                     |    5 +-
 test/remote-url.cpp                        |    1 -
 tools/mkclass/classcompiler.cpp            |   49 +++++++-------
 203 files changed, 808 insertions(+), 1007 deletions(-)

Diff:   https://git.icinga.org/?p=icinga2.git;a=commitdiff;h=34e3b6c0a2e0a9c742086a80290a740a082feab4


More information about the icinga-checkins mailing list