summaryrefslogtreecommitdiff
path: root/tests/test_xpath.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-17 19:52:23 -0800
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-17 19:52:23 -0800
commite9956ae3a6593efc6f8cb344a00432ece51d1574 (patch)
tree7a26d5c9e7faf32a5119bcc10040aa959b4b8686 /tests/test_xpath.cpp
parent79ed320f894c406dd3548e7d34cadd07fa82fb53 (diff)
Rename xml_document::load to load_string
This should completely eliminate the confusion between load and load_file. Of course, for compatibility reasons we have to preserve the old variant - it will be deprecated in a future version and subsequently removed.
Diffstat (limited to 'tests/test_xpath.cpp')
-rw-r--r--tests/test_xpath.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp
index a65ee37..e410882 100644
--- a/tests/test_xpath.cpp
+++ b/tests/test_xpath.cpp
@@ -13,7 +13,7 @@
static void load_document_copy(xml_document& doc, const char_t* text)
{
xml_document source;
- CHECK(source.load(text));
+ CHECK(source.load_string(text));
doc.append_copy(source.first_child());
}
@@ -551,10 +551,10 @@ TEST_XML(xpath_sort_append_buffer, "<node /><node />")
TEST(xpath_sort_crossdoc)
{
xml_document doc1;
- CHECK(doc1.load(STR("<node />")));
+ CHECK(doc1.load_string(STR("<node />")));
xml_document doc2;
- CHECK(doc2.load(STR("<node />")));
+ CHECK(doc2.load_string(STR("<node />")));
xpath_node_set ns1 = doc1.select_nodes(STR("*"));
CHECK(ns1.size() == 1);