# HG changeset patch # User KUDr # Date 1168818239 0 # Node ID d382ef7347c2599b625fde2d908632dd2fc93690 # Parent 2a5f9609e04d54918157a2b1134eb3199e92b5be (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) diff -r 2a5f9609e04d -r d382ef7347c2 src/station_cmd.cpp --- a/src/station_cmd.cpp Sun Jan 14 23:36:25 2007 +0000 +++ b/src/station_cmd.cpp Sun Jan 14 23:43:59 2007 +0000 @@ -1786,7 +1786,7 @@ 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;