diff --git a/src/challenges/challenge_data.cpp b/src/challenges/challenge_data.cpp index 63cffb694..901f0ff6d 100644 --- a/src/challenges/challenge_data.cpp +++ b/src/challenges/challenge_data.cpp @@ -17,7 +17,6 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "challenges/challenge_data.hpp" -#include #include #include @@ -52,9 +51,9 @@ ChallengeData::ChallengeData(const std::string& filename) m_ai_superpower[d] = RaceManager::SUPERPOWER_NONE; } - // we are using unique_ptr to make sure the XML node is released when leaving + // we are using auto_ptr to make sure the XML node is released when leaving // the scope - std::unique_ptr root(new XMLNode( filename )); + std::auto_ptr root(new XMLNode( filename )); if(root.get() == NULL || root->getName()!="challenge") {