Replace auto_ptr with unique_ptr

This commit is contained in:
Erik Hofman
2016-12-07 11:03:49 +01:00
parent b74d1a8351
commit e768553a4a
22 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ static const double J2000 = 2451545.0 - MJD0;
static const double SIDRATE = 0.9972695677;
// tzContainer stores all the current Timezone control points/
std::auto_ptr<SGTimeZoneContainer> static_tzContainer;
std::unique_ptr<SGTimeZoneContainer> static_tzContainer;
void SGTime::init( const SGGeod& location, const SGPath& root, time_t init_time )
{
+1 -1
View File
@@ -36,7 +36,7 @@
#include <simgear/compiler.h>
#include <ctime>
#include <memory> // for std::auto_ptr
#include <memory> // for std::unique_ptr
#include <string>
// forward decls