diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-10-17 20:36:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 20:36:49 -0700 |
commit | a832e8a5eff11f58a00ca41ec51ff3895b0da165 (patch) | |
tree | 5bdb84eac327f15b879bec3aa1cdba52a5839fe6 /tests/test_write.cpp | |
parent | f53bddd7d5c79c35145ab506e48b18c457026543 (diff) | |
parent | d0b0cc75ad1bc7c0c3226bc57d63095339579cbe (diff) |
Merge pull request #119 from pavelkryukov/master
Add C++11 'override' specifier
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"); } |