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/test_write.cpp | |
parent | 3b5810315734c815ff4c6385ebe8cf2d00bbb573 (diff) |
Add PUGIXML_OVERRIDE to headers of tests
Diffstat (limited to 'tests/test_write.cpp')
-rw-r--r-- | tests/test_write.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |