From f547a9961931172c8f475fb3648939fe95d03497 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 9 Jan 2015 15:17:09 +0300 Subject: [PATCH] Prohibited operations should be declared private --- tinyxml2.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tinyxml2.h b/tinyxml2.h index b18caf1..91f8653 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -882,8 +882,6 @@ public: protected: XMLNode( XMLDocument* ); virtual ~XMLNode(); - XMLNode( const XMLNode& ); // not supported - XMLNode& operator=( const XMLNode& ); // not supported XMLDocument* _document; XMLNode* _parent; @@ -900,6 +898,9 @@ private: void Unlink( XMLNode* child ); static void DeleteNode( XMLNode* node ); void InsertChildPreamble( XMLNode* insertThis ) const; + + XMLNode( const XMLNode& ); // not supported + XMLNode& operator=( const XMLNode& ); // not supported }; @@ -945,11 +946,12 @@ public: protected: XMLText( XMLDocument* doc ) : XMLNode( doc ), _isCData( false ) {} virtual ~XMLText() {} - XMLText( const XMLText& ); // not supported - XMLText& operator=( const XMLText& ); // not supported private: bool _isCData; + + XMLText( const XMLText& ); // not supported + XMLText& operator=( const XMLText& ); // not supported }; @@ -974,10 +976,10 @@ public: protected: XMLComment( XMLDocument* doc ); virtual ~XMLComment(); - XMLComment( const XMLComment& ); // not supported - XMLComment& operator=( const XMLComment& ); // not supported private: + XMLComment( const XMLComment& ); // not supported + XMLComment& operator=( const XMLComment& ); // not supported }; @@ -1012,6 +1014,8 @@ public: protected: XMLDeclaration( XMLDocument* doc ); virtual ~XMLDeclaration(); + +private: XMLDeclaration( const XMLDeclaration& ); // not supported XMLDeclaration& operator=( const XMLDeclaration& ); // not supported }; @@ -1044,6 +1048,8 @@ public: protected: XMLUnknown( XMLDocument* doc ); virtual ~XMLUnknown(); + +private: XMLUnknown( const XMLUnknown& ); // not supported XMLUnknown& operator=( const XMLUnknown& ); // not supported };