changeset 5679:228edec89cae draft

(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
author KUDr <KUDr@openttd.org>
date Sun, 14 Jan 2007 23:43:59 +0000
parents 3d8596aefdc3
children 4befae5df3f2
files src/station_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -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<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;