Changeset 11054 for code/branches/cpp11_v3/src/external/tinyxml
- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/external/tinyxml/ticpp.cpp
r8351 r11054 717 717 } 718 718 719 std:: auto_ptr< Node > Node::Clone() const719 std::unique_ptr< Node > Node::Clone() const 720 720 { 721 721 TiXmlNode* node = GetTiXmlPointer()->Clone(); … … 724 724 TICPPTHROW( "Node could not be cloned" ); 725 725 } 726 std:: auto_ptr< Node > temp( NodeFactory( node, false, false ) );726 std::unique_ptr< Node > temp( NodeFactory( node, false, false ) ); 727 727 728 728 // Take ownership of the memory from TiXml -
code/branches/cpp11_v3/src/external/tinyxml/ticpp.h
r8351 r11054 966 966 Create an exact duplicate of this node and return it. 967 967 968 @note Using auto_ptr to manage the memory declared on the heap by TiXmlNode::Clone.968 @note Using unique_ptr to manage the memory declared on the heap by TiXmlNode::Clone. 969 969 @code 970 970 // Now using clone … … 972 972 ticpp::Node* sectionToClone; 973 973 sectionToClone = doc.FirstChild( "settings" ); 974 std:: auto_ptr< ticpp::Node > clonedNode = sectionToClone->Clone();974 std::unique_ptr< ticpp::Node > clonedNode = sectionToClone->Clone(); 975 975 // Now you can use the clone. 976 976 ticpp::Node* node2 = clonedNode->FirstChildElement()->FirstChild(); … … 980 980 @return Pointer the duplicate node. 981 981 */ 982 std:: auto_ptr< Node > Clone() const;982 std::unique_ptr< Node > Clone() const; 983 983 984 984 /**
Note: See TracChangeset
for help on using the changeset viewer.