mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-26 21:04:25 +08:00
Add PUGIXML_OVERRIDE to headers of tests
This commit is contained in:
parent
3b58103157
commit
c7c7349cb7
@ -78,7 +78,7 @@ struct dummy_fixture {};
|
|||||||
{ \
|
{ \
|
||||||
test_runner_##name(): test_runner(#name) {} \
|
test_runner_##name(): test_runner(#name) {} \
|
||||||
\
|
\
|
||||||
virtual void run() \
|
virtual void run() PUGIXML_OVERRIDE \
|
||||||
{ \
|
{ \
|
||||||
test_runner_helper_##name helper; \
|
test_runner_helper_##name helper; \
|
||||||
helper.run(); \
|
helper.run(); \
|
||||||
|
@ -187,7 +187,7 @@ public:
|
|||||||
this->setg(begin, begin, end);
|
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());
|
return this->gptr() == this->egptr() ? std::basic_streambuf<T>::traits_type::eof() : std::basic_streambuf<T>::traits_type::to_int_type(*this->gptr());
|
||||||
}
|
}
|
||||||
|
@ -798,7 +798,7 @@ struct test_walker: xml_tree_walker
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool begin(xml_node& node)
|
virtual bool begin(xml_node& node) PUGIXML_OVERRIDE
|
||||||
{
|
{
|
||||||
log += STR("|");
|
log += STR("|");
|
||||||
log += depthstr();
|
log += depthstr();
|
||||||
@ -810,7 +810,7 @@ struct test_walker: xml_tree_walker
|
|||||||
return ++call_count != stop_count && xml_tree_walker::begin(node);
|
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 += STR("|");
|
||||||
log += depthstr();
|
log += depthstr();
|
||||||
@ -822,7 +822,7 @@ struct test_walker: xml_tree_walker
|
|||||||
return ++call_count != stop_count && xml_tree_walker::end(node);
|
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 += STR("|");
|
||||||
log += depthstr();
|
log += depthstr();
|
||||||
|
@ -213,7 +213,7 @@ struct test_writer: xml_writer
|
|||||||
{
|
{
|
||||||
std::basic_string<pugi::char_t> contents;
|
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);
|
CHECK(size % sizeof(pugi::char_t) == 0);
|
||||||
contents.append(static_cast<const pugi::char_t*>(data), size / sizeof(pugi::char_t));
|
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
|
#ifndef PUGIXML_NO_EXCEPTIONS
|
||||||
struct throwing_writer: pugi::xml_writer
|
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");
|
throw std::runtime_error("write failed");
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ struct xml_writer_string: public pugi::xml_writer
|
|||||||
{
|
{
|
||||||
std::string contents;
|
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::string as_narrow() const;
|
||||||
std::basic_string<wchar_t> as_wide() const;
|
std::basic_string<wchar_t> as_wide() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user