remove redundant parameter from ObjectCreator.Param attribute

This commit is contained in:
Bob
2010-10-11 15:16:08 +13:00
parent 6a25d989a7
commit beecb8aeb1
10 changed files with 14 additions and 12 deletions

View File

@@ -15,7 +15,7 @@ namespace OpenRA.Widgets.Delegates
public class ConnectionDialogsDelegate : IWidgetDelegate
{
[ObjectCreator.UseCtor]
public ConnectionDialogsDelegate( [ObjectCreator.Param( "widget" )] Widget widget )
public ConnectionDialogsDelegate( [ObjectCreator.Param] Widget widget )
{
widget.GetWidget("CONNECTION_BUTTON_ABORT").OnMouseUp = mi => {
widget.GetWidget("CONNECTION_BUTTON_ABORT").Parent.Visible = false;
@@ -31,7 +31,7 @@ namespace OpenRA.Widgets.Delegates
public class ConnectionFailedDelegate : IWidgetDelegate
{
[ObjectCreator.UseCtor]
public ConnectionFailedDelegate( [ObjectCreator.Param( "widget" )] Widget widget )
public ConnectionFailedDelegate( [ObjectCreator.Param] Widget widget )
{
widget.GetWidget("CONNECTION_BUTTON_CANCEL").OnMouseUp = mi => {
widget.GetWidget("CONNECTION_BUTTON_CANCEL").Parent.Visible = false;