diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-06-22 20:33:02 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-06-22 20:33:02 -0700 |
commit | 4b371e10eed49d25bf4240a6aaa321b084e586ea (patch) | |
tree | cb00ecd69d6c43cd9e8e4e9ad2bb84acf92745c4 /tests/test_memory.cpp | |
parent | 853333cd709cc063e4f97418c1297f9c83e48d41 (diff) |
tests: Remove redundant pugi:: qualifier
Most tests have `using namespace pugi` which makes explicit
qualifications unnecessary.
Diffstat (limited to 'tests/test_memory.cpp')
-rw-r--r-- | tests/test_memory.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_memory.cpp b/tests/test_memory.cpp index 14c9aff..becb89b 100644 --- a/tests/test_memory.cpp +++ b/tests/test_memory.cpp @@ -56,7 +56,7 @@ TEST(memory_custom_memory_management) CHECK(page_allocs == 1 && page_deallocs == 0); // modify document (new page) - std::basic_string<pugi::char_t> s(65536, 'x'); + std::basic_string<char_t> s(65536, 'x'); CHECK(doc.first_child().set_name(s.c_str())); CHECK(page_allocs == 2 && page_deallocs == 0); @@ -93,7 +93,7 @@ TEST(memory_large_allocations) // initial fill for (size_t i = 0; i < 128; ++i) { - std::basic_string<pugi::char_t> s(i * 128, 'x'); + std::basic_string<char_t> s(i * 128, 'x'); CHECK(doc.append_child(node_pcdata).set_value(s.c_str())); } @@ -103,12 +103,12 @@ TEST(memory_large_allocations) // grow-prune loop while (doc.first_child()) { - pugi::xml_node node; + xml_node node; // grow for (node = doc.first_child(); node; node = node.next_sibling()) { - std::basic_string<pugi::char_t> s = node.value(); + std::basic_string<char_t> s = node.value(); CHECK(node.set_value((s + s).c_str())); } @@ -116,7 +116,7 @@ TEST(memory_large_allocations) // prune for (node = doc.first_child(); node; ) { - pugi::xml_node next = node.next_sibling().next_sibling(); + xml_node next = node.next_sibling().next_sibling(); node.parent().remove_child(node); |