]> granicus.if.org Git - icinga2/blobdiff - lib/livestatus/andfilter.cpp
Remove more redundant wrappers from CompatUtility class
[icinga2] / lib / livestatus / andfilter.cpp
index 2a6c5b6c8887e095f9d296224a8d54e8e5510da0..66b46766b475a3a61fcace4aba6a0ca0a2de46cf 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)    *
+ * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
  *                                                                            *
  * This program is free software; you can redistribute it and/or              *
  * modify it under the terms of the GNU General Public License                *
  ******************************************************************************/
 
 #include "livestatus/andfilter.hpp"
-#include <boost/foreach.hpp>
 
 using namespace icinga;
 
-AndFilter::AndFilter(void)
-{ }
-
 bool AndFilter::Apply(const Table::Ptr& table, const Value& row)
 {
-       BOOST_FOREACH(const Filter::Ptr& filter, m_Filters) {
+       for (const Filter::Ptr& filter : m_Filters) {
                if (!filter->Apply(table, row))
                        return false;
        }