From fd383668f85f6f62c3f4ae656a7c7e5be571ad1e Mon Sep 17 00:00:00 2001 From: KUDr Date: Sun, 14 Jan 2007 23:43:59 +0000 Subject: [PATCH] (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 98a177d7d0..351c55aff0 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1786,7 +1786,7 @@ int32 CmdBuildBuoy(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (st == NULL) return CMD_ERROR; /* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */ - std::auto_ptr st_auto_delete = std::auto_ptr(st); + std::auto_ptr st_auto_delete(st); st->town = ClosestTownFromTile(tile, (uint)-1); st->sign.width_1 = 0;