summaryrefslogtreecommitdiff
path: root/tests/test_write.cpp
diff options
context:
space:
mode:
authorPavel Kryukov <kryukov@frtk.ru>2016-10-13 01:36:12 +0300
committerPavel Kryukov <kryukov@frtk.ru>2016-10-13 01:36:12 +0300
commitc7c7349cb7935d8cfcdd241e6d401a89567e89eb (patch)
tree719df181c4ac29cff053d6dd7385357961a3962b /tests/test_write.cpp
parent3b5810315734c815ff4c6385ebe8cf2d00bbb573 (diff)
Add PUGIXML_OVERRIDE to headers of tests
Diffstat (limited to 'tests/test_write.cpp')
-rw-r--r--tests/test_write.cpp4
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");
}