Change find_html_comments() API to return the results
[libi2ncommon] / test / stringfunc.cpp
index bec8782..e6554fe 100644 (file)
@@ -746,8 +746,7 @@ BOOST_AUTO_TEST_CASE(find_html_comments_test)
     expect.push_back(CommentZone(48, 55));
     expect.push_back(CommentZone(55, string::npos));
     expect.push_back(CommentZone(62, 72));
-    vector<CommentZone> result;
-    find_html_comments(text, result);
+    vector<CommentZone> result = find_html_comments(text);
     //BOOST_CHECK_EQUAL_COLLECTIONS(result.begin(), result.end(),   not working, requires ...
     //                              expect.begin(), expect.end());  ... operator<<(CommentZone)
     BOOST_CHECK_EQUAL(result.size(), expect.size());