summaryrefslogtreecommitdiff
path: root/tests/test_memory.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-22 20:33:02 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-22 20:33:02 -0700
commit4b371e10eed49d25bf4240a6aaa321b084e586ea (patch)
treecb00ecd69d6c43cd9e8e4e9ad2bb84acf92745c4 /tests/test_memory.cpp
parent853333cd709cc063e4f97418c1297f9c83e48d41 (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.cpp10
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);