forked from mirrors/0ad
Replace std::auto_ptr uses by std::unique_ptr since the former is deprecated.
This was SVN commit r16674.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -86,8 +86,8 @@ public:
|
||||
|
||||
private:
|
||||
void ReadExtras(xmlNode* colladaNode);
|
||||
std::auto_ptr<FCDocument> document;
|
||||
std::auto_ptr<FCDExtra> extra;
|
||||
std::unique_ptr<FCDocument> document;
|
||||
std::unique_ptr<FCDExtra> extra;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2009 Wildfire Games.
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -148,7 +148,7 @@ namespace
|
||||
for (xmlNodeList::iterator skeletonNode = skeletonNodes.begin();
|
||||
skeletonNode != skeletonNodes.end(); ++skeletonNode)
|
||||
{
|
||||
std::auto_ptr<Skeleton> skeleton (new Skeleton());
|
||||
std::unique_ptr<Skeleton> skeleton (new Skeleton());
|
||||
|
||||
std::string title (FUXmlParser::ReadNodeProperty(*skeletonNode, "title"));
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
/* Copyright (C) 2015 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
*/
|
||||
static void LoadSkeletonDataFromXml(const char* xmlData, size_t xmlLength, std::string& xmlErrors);
|
||||
|
||||
std::auto_ptr<Skeleton_impl> m;
|
||||
std::unique_ptr<Skeleton_impl> m;
|
||||
private:
|
||||
Skeleton(Skeleton&);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user