Просмотр исходного кода

make printer functions virtual

Lee Thomason 5 лет назад
Родитель
Сommit
8812f197ac
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      tinyxml2.h

+ 5 - 4
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;