From 8812f197ac3d5f6b15fc656df11870d3d829f7a8 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Sat, 13 Jun 2020 17:46:44 -0700 Subject: [PATCH] make printer functions virtual --- tinyxml2.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index 3c702ec..b185fa1 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -2327,10 +2327,11 @@ protected: the space and tabs used. A PrintSpace() override should call Print(). */ virtual void PrintSpace( int depth ); - void Print( const char* format, ... ); - void Write( const char* data, size_t size ); - inline void Write( const char* data ) { Write( data, strlen( data ) ); } - void Putc( char ch ); + virtual void Print( const char* format, ... ); + virtual void Write( const char* data, size_t size ); + virtual void Putc( char ch ); + + inline void Write(const char* data) { Write(data, strlen(data)); } void SealElementIfJustOpened(); bool _elementJustOpened;