summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-01-14 23:43:59 +0000
committerKUDr <KUDr@openttd.org>2007-01-14 23:43:59 +0000
commit97ee8287ab01538d1b1f56a520527bc82d3af91d (patch)
treeb939e5eaf98d6f4e8ee49a1ab08774b356451f89
parent96ac5ac11183e5b3a2f4c3d12a50824dc541ff38 (diff)
downloadopenttd-97ee8287ab01538d1b1f56a520527bc82d3af91d.tar.xz
(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
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<Station> st_auto_delete = std::auto_ptr<Station>(st);
+ std::auto_ptr<Station> st_auto_delete(st);
st->town = ClosestTownFromTile(tile, (uint)-1);
st->sign.width_1 = 0;