From 97ee8287ab01538d1b1f56a520527bc82d3af91d Mon Sep 17 00:00:00 2001 From: KUDr Date: Sun, 14 Jan 2007 23:43:59 +0000 Subject: (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/station_cmd.cpp') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 98a177d7d..351c55aff 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; -- cgit v1.2.3-54-g00ecf