Skip to content

Commit

Permalink
Merge pull request #550 from asmaloney/fix-weak-vtable-warning
Browse files Browse the repository at this point in the history
Fix weak vtable warning regarding xml_writer
  • Loading branch information
zeux authored Apr 21, 2023
2 parents f4b8946 + 058fc60 commit 8d18de8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/pugixml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5111,6 +5111,10 @@ PUGI_IMPL_NS_END

namespace pugi
{
PUGI_IMPL_FN xml_writer::~xml_writer()
{
}

PUGI_IMPL_FN xml_writer_file::xml_writer_file(void* file_): file(file_)
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/pugixml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ namespace pugi
class PUGIXML_CLASS xml_writer
{
public:
virtual ~xml_writer() {}
virtual ~xml_writer();

// Write memory chunk into stream/file/whatever
virtual void write(const void* data, size_t size) = 0;
Expand Down

0 comments on commit 8d18de8

Please sign in to comment.