summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2019-01-05 09:48:17 -0500
committerHubert Figuière <hub@figuiere.net>2019-01-05 09:48:17 -0500
commitac2aaa38710db68882117dad4d587cac295b4788 (patch)
tree9f612c2d896896d5068f89de48617e2943d7fdd6
parent6569c61a4e02ade3e25c9433c939d9b7061d0c21 (diff)
tests: fix some warnings
-rw-r--r--exempi/tests/test-iterator.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/exempi/tests/test-iterator.cpp b/exempi/tests/test-iterator.cpp
index 32e0b14..93ea189 100644
--- a/exempi/tests/test-iterator.cpp
+++ b/exempi/tests/test-iterator.cpp
@@ -99,11 +99,11 @@ int test_main(int argc, char *argv[])
std::vector<tuple3> props;
while (xmp_iterator_next(iter, the_schema, the_path, the_prop, &options)) {
- props.push_back(tuple3 {
+ props.push_back(tuple3 {{
xmp_string_cstr(the_schema),
xmp_string_cstr(the_path),
xmp_string_cstr(the_prop)
- });
+ }});
}
BOOST_CHECK(props.size() == 7);
@@ -125,18 +125,18 @@ int test_main(int argc, char *argv[])
std::vector<tuple3> props;
while (xmp_iterator_next(iter, the_schema, the_path, the_prop, &options)) {
- props.push_back(tuple3 {
+ props.push_back(tuple3 {{
xmp_string_cstr(the_schema),
xmp_string_cstr(the_path),
xmp_string_cstr(the_prop)
- });
+ }});
}
BOOST_CHECK(props.size() == 3);
- BOOST_CHECK(props[0] == tuple3({ NS_DC, "dc:rights", "" }));
- BOOST_CHECK(props[1] == tuple3({ "", "[1]", "2006, Hubert Figuiere" }));
- BOOST_CHECK(props[2] == tuple3({ NS_XML, "xml:lang", "x-default" }));
+ BOOST_CHECK(props[0] == (tuple3{{NS_DC, "dc:rights", ""}}));
+ BOOST_CHECK(props[1] == (tuple3{{"", "[1]", "2006, Hubert Figuiere"}}));
+ BOOST_CHECK(props[2] == (tuple3{{NS_XML, "xml:lang", "x-default"}}));
BOOST_CHECK(xmp_iterator_free(iter));
}