changeset 12390:cca34a3de96e draft

(svn r16820) -Codechange: remove unused parameter in HandleCloneVehClick()
author smatz <smatz@openttd.org>
date Mon, 13 Jul 2009 22:07:07 +0000
parents 33d43c75307c
children b7b1110f6c24
files src/depot_gui.cpp
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -549,9 +549,8 @@
 	/**
 	 * Clones a vehicle
 	 * @param *v is the original vehicle to clone
-	 * @param *w is the window of the depot where the clone is build
 	 */
-	void HandleCloneVehClick(const Vehicle *v, const Window *w)
+	void HandleCloneVehClick(const Vehicle *v)
 	{
 		StringID error_str;
 
@@ -901,7 +900,7 @@
 	{
 		const Vehicle *v = CheckMouseOverVehicle();
 
-		if (v != NULL) HandleCloneVehClick(v, this);
+		if (v != NULL) this->HandleCloneVehClick(v);
 	}
 
 	virtual void OnPlaceObjectAbort()
@@ -923,7 +922,7 @@
 		/* since OTTD checks all open depot windows, we will make sure that it triggers the one with a clicked clone button */
 		if (v != NULL && this->IsWidgetLowered(DEPOT_WIDGET_CLONE)) {
 			_place_clicked_vehicle = NULL;
-			HandleCloneVehClick(v, this);
+			this->HandleCloneVehClick(v);
 		}
 	}