# HG changeset patch # User KUDr # Date 2007-01-14 23:43:59 # Node ID 51a01e1303ac1531bc7bdd6aa73e9e6a38fb8795 # Parent ea7f4cfadfcda363289f5a33e40a73185f3c8cea (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1786,7 +1786,7 @@ int32 CmdBuildBuoy(TileIndex tile, uint3 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;