Prohibited operations should be declared private
diff --git a/tinyxml2.h b/tinyxml2.h
index b18caf1..91f8653 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -882,8 +882,6 @@
protected:
XMLNode( XMLDocument* );
virtual ~XMLNode();
- XMLNode( const XMLNode& ); // not supported
- XMLNode& operator=( const XMLNode& ); // not supported
XMLDocument* _document;
XMLNode* _parent;
@@ -900,6 +898,9 @@
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 @@
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 @@
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 @@
protected:
XMLDeclaration( XMLDocument* doc );
virtual ~XMLDeclaration();
+
+private:
XMLDeclaration( const XMLDeclaration& ); // not supported
XMLDeclaration& operator=( const XMLDeclaration& ); // not supported
};
@@ -1044,6 +1048,8 @@
protected:
XMLUnknown( XMLDocument* doc );
virtual ~XMLUnknown();
+
+private:
XMLUnknown( const XMLUnknown& ); // not supported
XMLUnknown& operator=( const XMLUnknown& ); // not supported
};