]> granicus.if.org Git - icinga2/blobdiff - test/base-dictionary.cpp
Merge pull request #5925 from Icinga/fix/missing-variable-name
[icinga2] / test / base-dictionary.cpp
index 99990e92a0b83d95ccd11ebef83adb3396a64378..466892dc7ebb8e63af13d1ce49a39f68f2bec1bd 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2014 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                *
@@ -20,9 +20,7 @@
 #include "base/dictionary.hpp"
 #include "base/objectlock.hpp"
 #include "base/json.hpp"
-#include <boost/test/unit_test.hpp>
-#include <boost/foreach.hpp>
-#include <boost/tuple/tuple.hpp>
+#include <BoostTestTargetConfig.h>
 
 using namespace icinga;
 
@@ -82,7 +80,7 @@ BOOST_AUTO_TEST_CASE(foreach)
 
        bool seen_test1 = false, seen_test2 = false;
 
-       BOOST_FOREACH(const Dictionary::Pair& kv, dictionary) {
+       for (const Dictionary::Pair& kv : dictionary) {
                BOOST_CHECK(kv.first == "test1" || kv.first == "test2");
 
                if (kv.first == "test1") {