projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BOOST_FOREACH.
[dcpomatic.git]
/
test
/
colour_conversion_test.cc
diff --git
a/test/colour_conversion_test.cc
b/test/colour_conversion_test.cc
index 03b89dee05c02f122fbc6a3ef9334159c2dae433..28545b3f0c30a60fed4ae8ceaa3a231e68a61833 100644
(file)
--- a/
test/colour_conversion_test.cc
+++ b/
test/colour_conversion_test.cc
@@
-19,7
+19,8
@@
*/
/** @file test/colour_conversion_test.cc
*/
/** @file test/colour_conversion_test.cc
- * @brief Various tests of ColourConversion.
+ * @brief Test ColourConversion class.
+ * @ingroup selfcontained
*/
#include "lib/colour_conversion.h"
*/
#include "lib/colour_conversion.h"
@@
-27,11
+28,10
@@
#include <dcp/gamma_transfer_function.h>
#include <libxml++/libxml++.h>
#include <boost/test/unit_test.hpp>
#include <dcp/gamma_transfer_function.h>
#include <libxml++/libxml++.h>
#include <boost/test/unit_test.hpp>
-#include <boost/foreach.hpp>
#include <iostream>
using std::cout;
#include <iostream>
using std::cout;
-using
boost
::shared_ptr;
+using
std
::shared_ptr;
BOOST_AUTO_TEST_CASE (colour_conversion_test1)
{
BOOST_AUTO_TEST_CASE (colour_conversion_test1)
{
@@
-104,7
+104,7
@@
BOOST_AUTO_TEST_CASE (colour_conversion_test3)
/** Test a round trip via the XML representation */
BOOST_AUTO_TEST_CASE (colour_conversion_test4)
{
/** Test a round trip via the XML representation */
BOOST_AUTO_TEST_CASE (colour_conversion_test4)
{
-
BOOST_FOREACH (PresetColourConversion const & i,
PresetColourConversion::all ()) {
+
for (auto const& i:
PresetColourConversion::all ()) {
xmlpp::Document out;
xmlpp::Element* out_root = out.create_root_node ("Test");
i.conversion.as_xml (out_root);
xmlpp::Document out;
xmlpp::Element* out_root = out.create_root_node ("Test");
i.conversion.as_xml (out_root);