diff options
author | Pavel Kryukov <kryukov@frtk.ru> | 2016-10-13 01:36:12 +0300 |
---|---|---|
committer | Pavel Kryukov <kryukov@frtk.ru> | 2016-10-13 01:36:12 +0300 |
commit | c7c7349cb7935d8cfcdd241e6d401a89567e89eb (patch) | |
tree | 719df181c4ac29cff053d6dd7385357961a3962b /tests | |
parent | 3b5810315734c815ff4c6385ebe8cf2d00bbb573 (diff) |
Add PUGIXML_OVERRIDE to headers of tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.hpp | 2 | ||||
-rw-r--r-- | tests/test_document.cpp | 2 | ||||
-rw-r--r-- | tests/test_dom_traverse.cpp | 6 | ||||
-rw-r--r-- | tests/test_write.cpp | 4 | ||||
-rw-r--r-- | tests/writer_string.hpp | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/tests/test.hpp b/tests/test.hpp index e700826..f88c909 100644 --- a/tests/test.hpp +++ b/tests/test.hpp @@ -78,7 +78,7 @@ struct dummy_fixture {}; { \ test_runner_##name(): test_runner(#name) {} \ \ - virtual void run() \ + virtual void run() PUGIXML_OVERRIDE \ { \ test_runner_helper_##name helper; \ helper.run(); \ diff --git a/tests/test_document.cpp b/tests/test_document.cpp index 73a36f5..c7219e1 100644 --- a/tests/test_document.cpp +++ b/tests/test_document.cpp @@ -187,7 +187,7 @@ public: this->setg(begin, begin, end); } - typename std::basic_streambuf<T>::int_type underflow() + typename std::basic_streambuf<T>::int_type underflow() PUGIXML_OVERRIDE { return this->gptr() == this->egptr() ? std::basic_streambuf<T>::traits_type::eof() : std::basic_streambuf<T>::traits_type::to_int_type(*this->gptr()); } diff --git a/tests/test_dom_traverse.cpp b/tests/test_dom_traverse.cpp index 25774a5..f977e15 100644 --- a/tests/test_dom_traverse.cpp +++ b/tests/test_dom_traverse.cpp @@ -798,7 +798,7 @@ struct test_walker: xml_tree_walker #endif } - virtual bool begin(xml_node& node) + virtual bool begin(xml_node& node) PUGIXML_OVERRIDE { log += STR("|"); log += depthstr(); @@ -810,7 +810,7 @@ struct test_walker: xml_tree_walker return ++call_count != stop_count && xml_tree_walker::begin(node); } - virtual bool for_each(xml_node& node) + virtual bool for_each(xml_node& node) PUGIXML_OVERRIDE { log += STR("|"); log += depthstr(); @@ -822,7 +822,7 @@ struct test_walker: xml_tree_walker return ++call_count != stop_count && xml_tree_walker::end(node); } - virtual bool end(xml_node& node) + virtual bool end(xml_node& node) PUGIXML_OVERRIDE { log += STR("|"); log += depthstr(); diff --git a/tests/test_write.cpp b/tests/test_write.cpp index 341a4f0..bf45e31 100644 --- a/tests/test_write.cpp +++ b/tests/test_write.cpp @@ -213,7 +213,7 @@ struct test_writer: xml_writer { std::basic_string<pugi::char_t> contents; - virtual void write(const void* data, size_t size) + virtual void write(const void* data, size_t size) PUGIXML_OVERRIDE { CHECK(size % sizeof(pugi::char_t) == 0); contents.append(static_cast<const pugi::char_t*>(data), size / sizeof(pugi::char_t)); @@ -604,7 +604,7 @@ TEST_XML_FLAGS(write_mixed, "<node><child1/><child2>pre<![CDATA[data]]>mid<!--co #ifndef PUGIXML_NO_EXCEPTIONS struct throwing_writer: pugi::xml_writer { - virtual void write(const void*, size_t) + virtual void write(const void*, size_t) PUGIXML_OVERRIDE { throw std::runtime_error("write failed"); } diff --git a/tests/writer_string.hpp b/tests/writer_string.hpp index 0c1089d..539377c 100644 --- a/tests/writer_string.hpp +++ b/tests/writer_string.hpp @@ -9,7 +9,7 @@ struct xml_writer_string: public pugi::xml_writer { std::string contents; - virtual void write(const void* data, size_t size); + virtual void write(const void* data, size_t size) PUGIXML_OVERRIDE; std::string as_narrow() const; std::basic_string<wchar_t> as_wide() const; |