tests: Work around test warnings in clang-7
Self-assignment generates a Wself-assign-overloaded warning.
This commit is contained in:
parent
4f6e7454fd
commit
a556845555
@ -123,7 +123,7 @@ TEST_XML(xpath_api_nodeset_copy, "<node><foo/><foo/></node>")
|
||||
|
||||
xpath_node_set copy3;
|
||||
copy3 = set;
|
||||
copy3 = copy3;
|
||||
copy3 = xpath_node_set(copy3);
|
||||
CHECK(copy3.size() == 2);
|
||||
CHECK_STRING(copy3[0].node().name(), STR("foo"));
|
||||
|
||||
|
||||
@ -454,7 +454,7 @@ TEST_XML(xpath_variables_copy, "<node />")
|
||||
|
||||
CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring"));
|
||||
|
||||
set3 = set3;
|
||||
set3 = xpath_variable_set(set3);
|
||||
|
||||
CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring"));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user