summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-22 01:39:22 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-22 01:39:22 +0100
commit5fbcd3a8dc711c6c42efabbac72ab0408f504ea2 (patch)
treedfc84a000b2e2c67b6c73c2b8809b5da3137ecc4 /test
parentbebe2f996176113a527bf2492fd179420493d0ff (diff)
Assorted c++11 cleanups.
Diffstat (limited to 'test')
-rw-r--r--test/combine_test.cc7
-rw-r--r--test/verify_test.cc1
2 files changed, 3 insertions, 5 deletions
diff --git a/test/combine_test.cc b/test/combine_test.cc
index fc34109b..09a45770 100644
--- a/test/combine_test.cc
+++ b/test/combine_test.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -44,7 +44,6 @@
#include "verify.h"
#include "reel_markers_asset.h"
#include <boost/algorithm/string.hpp>
-#include <boost/foreach.hpp>
#include <boost/optional.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
@@ -74,7 +73,7 @@ static
void
dump_notes (vector<dcp::VerificationNote> const & notes)
{
- BOOST_FOREACH (dcp::VerificationNote i, notes) {
+ for (auto i: notes) {
std::cout << dcp::note_to_string(i) << "\n";
}
}
@@ -100,7 +99,7 @@ template <class T>
shared_ptr<T>
pointer_to_id_in_vector (shared_ptr<T> needle, vector<shared_ptr<T> > haystack)
{
- BOOST_FOREACH (shared_ptr<T> i, haystack) {
+ for (auto i: haystack) {
if (i->id() == needle->id()) {
return i;
}
diff --git a/test/verify_test.cc b/test/verify_test.cc
index a9d5c0a7..a6f71b49 100644
--- a/test/verify_test.cc
+++ b/test/verify_test.cc
@@ -54,7 +54,6 @@
#include "raw_convert.h"
#include "stream_operators.h"
#include <boost/test/unit_test.hpp>
-#include <boost/foreach.hpp>
#include <boost/algorithm/string.hpp>
#include <cstdio>
#include <iostream>