From 4b371e10eed49d25bf4240a6aaa321b084e586ea Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 22 Jun 2017 20:33:02 -0700 Subject: tests: Remove redundant pugi:: qualifier Most tests have `using namespace pugi` which makes explicit qualifications unnecessary. --- tests/test_memory.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test_memory.cpp') 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 s(65536, 'x'); + std::basic_string 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 s(i * 128, 'x'); + std::basic_string 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 s = node.value(); + std::basic_string 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); -- cgit v1.2.3