瀏覽代碼

make printer functions virtual

Lee Thomason 5 年之前
父節點
當前提交
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().
 	    the space and tabs used. A PrintSpace() override should call Print().
 	*/
 	*/
     virtual void PrintSpace( int depth );
     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();
     void SealElementIfJustOpened();
     bool _elementJustOpened;
     bool _elementJustOpened;