diff --git a/OpenRA.Editor/Surface.cs b/OpenRA.Editor/Surface.cs index 710e49d604..793d84145a 100644 --- a/OpenRA.Editor/Surface.cs +++ b/OpenRA.Editor/Surface.cs @@ -107,7 +107,6 @@ namespace OpenRA.Editor public Dictionary Chunks = new Dictionary(); public Surface() - : base() { BackColor = Color.Black; diff --git a/OpenRA.FileFormats/Primitives/ObservableCollection.cs b/OpenRA.FileFormats/Primitives/ObservableCollection.cs index 610cb28762..810623d232 100644 --- a/OpenRA.FileFormats/Primitives/ObservableCollection.cs +++ b/OpenRA.FileFormats/Primitives/ObservableCollection.cs @@ -23,7 +23,7 @@ namespace OpenRA.FileFormats.Primitives public event Action OnSet = (o, n) => { }; public event Action OnRefresh = () => { }; - public ObservableCollection() : base() { } + public ObservableCollection() { } public ObservableCollection(IList list) : base(list) { } protected override void SetItem(int index, T item) diff --git a/OpenRA.Game/Widgets/BackgroundWidget.cs b/OpenRA.Game/Widgets/BackgroundWidget.cs index d7e9589437..7bb94f2ee4 100644 --- a/OpenRA.Game/Widgets/BackgroundWidget.cs +++ b/OpenRA.Game/Widgets/BackgroundWidget.cs @@ -23,7 +23,7 @@ namespace OpenRA.Widgets WidgetUtils.DrawPanel(Background, RenderBounds); } - public BackgroundWidget() : base() { } + public BackgroundWidget() { } bool moving; int2? prevMouseLocation; diff --git a/OpenRA.Game/Widgets/ButtonWidget.cs b/OpenRA.Game/Widgets/ButtonWidget.cs index a14d548487..d02e7c8bae 100644 --- a/OpenRA.Game/Widgets/ButtonWidget.cs +++ b/OpenRA.Game/Widgets/ButtonWidget.cs @@ -48,7 +48,6 @@ namespace OpenRA.Widgets public Action OnKeyPress = _ => {}; public ButtonWidget() - : base() { GetText = () => { return Text; }; OnMouseUp = _ => OnClick(); diff --git a/OpenRA.Game/Widgets/ChatDisplayWidget.cs b/OpenRA.Game/Widgets/ChatDisplayWidget.cs index 04e140ea73..131400386f 100644 --- a/OpenRA.Game/Widgets/ChatDisplayWidget.cs +++ b/OpenRA.Game/Widgets/ChatDisplayWidget.cs @@ -27,7 +27,7 @@ namespace OpenRA.Widgets internal List recentLines = new List(); public ChatDisplayWidget() - : base() { } + { } public override Rectangle EventBounds { get { return Rectangle.Empty; } } diff --git a/OpenRA.Game/Widgets/CheckboxWidget.cs b/OpenRA.Game/Widgets/CheckboxWidget.cs index e2378a2a7d..124c24678b 100644 --- a/OpenRA.Game/Widgets/CheckboxWidget.cs +++ b/OpenRA.Game/Widgets/CheckboxWidget.cs @@ -25,7 +25,6 @@ namespace OpenRA.Widgets public bool HasPressedState = ChromeMetrics.Get("CheckboxPressedState"); public CheckboxWidget() - : base() { GetCheckType = () => CheckType; } diff --git a/OpenRA.Game/Widgets/ClientTooltipRegionWidget.cs b/OpenRA.Game/Widgets/ClientTooltipRegionWidget.cs index d487ea51ae..b515e75bf9 100644 --- a/OpenRA.Game/Widgets/ClientTooltipRegionWidget.cs +++ b/OpenRA.Game/Widgets/ClientTooltipRegionWidget.cs @@ -27,7 +27,7 @@ namespace OpenRA.Widgets OrderManager orderManager; int clientIndex; - public ClientTooltipRegionWidget() : base() + public ClientTooltipRegionWidget() { tooltipContainer = Lazy.New(() => Ui.Root.Get(TooltipContainer)); } diff --git a/OpenRA.Game/Widgets/ColorBlockWidget.cs b/OpenRA.Game/Widgets/ColorBlockWidget.cs index 4a1c64e2f2..c27f19f6bf 100644 --- a/OpenRA.Game/Widgets/ColorBlockWidget.cs +++ b/OpenRA.Game/Widgets/ColorBlockWidget.cs @@ -18,7 +18,6 @@ namespace OpenRA.Widgets public Func GetColor; public ColorBlockWidget() - : base() { GetColor = () => Color.White; } diff --git a/OpenRA.Game/Widgets/DropDownButtonWidget.cs b/OpenRA.Game/Widgets/DropDownButtonWidget.cs index 96a5e35cc4..ca3ae8aba0 100644 --- a/OpenRA.Game/Widgets/DropDownButtonWidget.cs +++ b/OpenRA.Game/Widgets/DropDownButtonWidget.cs @@ -20,7 +20,7 @@ namespace OpenRA.Widgets Widget panel; MaskWidget fullscreenMask; - public DropDownButtonWidget() : base() { } + public DropDownButtonWidget() { } protected DropDownButtonWidget(DropDownButtonWidget widget) : base(widget) { } @@ -145,7 +145,7 @@ namespace OpenRA.Widgets public class MaskWidget : Widget { public event Action OnMouseDown = _ => {}; - public MaskWidget() : base() { } + public MaskWidget() { } public MaskWidget(MaskWidget other) : base(other) { diff --git a/OpenRA.Game/Widgets/HotkeyEntryWidget.cs b/OpenRA.Game/Widgets/HotkeyEntryWidget.cs index bbb693f226..2e416165e7 100644 --- a/OpenRA.Game/Widgets/HotkeyEntryWidget.cs +++ b/OpenRA.Game/Widgets/HotkeyEntryWidget.cs @@ -31,7 +31,7 @@ namespace OpenRA.Widgets public Color DisabledColor = Color.Gray; public string Font = "Regular"; - public HotkeyEntryWidget() : base() {} + public HotkeyEntryWidget() {} protected HotkeyEntryWidget(HotkeyEntryWidget widget) : base(widget) { diff --git a/OpenRA.Game/Widgets/ImageWidget.cs b/OpenRA.Game/Widgets/ImageWidget.cs index f9f323b3de..5c5eeadce0 100644 --- a/OpenRA.Game/Widgets/ImageWidget.cs +++ b/OpenRA.Game/Widgets/ImageWidget.cs @@ -21,7 +21,6 @@ namespace OpenRA.Widgets public Func GetImageCollection; public ImageWidget() - : base() { GetImageName = () => ImageName; GetImageCollection = () => ImageCollection; diff --git a/OpenRA.Game/Widgets/LabelWidget.cs b/OpenRA.Game/Widgets/LabelWidget.cs index 230f0ed955..d4546a9890 100644 --- a/OpenRA.Game/Widgets/LabelWidget.cs +++ b/OpenRA.Game/Widgets/LabelWidget.cs @@ -33,7 +33,6 @@ namespace OpenRA.Widgets public Func GetContrastColor; public LabelWidget() - : base() { GetText = () => Text; GetColor = () => Color; diff --git a/OpenRA.Game/Widgets/LineGraphWidget.cs b/OpenRA.Game/Widgets/LineGraphWidget.cs index 50351b81b4..6e3a19b527 100644 --- a/OpenRA.Game/Widgets/LineGraphWidget.cs +++ b/OpenRA.Game/Widgets/LineGraphWidget.cs @@ -41,7 +41,6 @@ namespace OpenRA.Widgets public string AxisFont; public LineGraphWidget() - : base() { GetValueFormat = () => ValueFormat; GetXAxisValueFormat = () => XAxisValueFormat; diff --git a/OpenRA.Game/Widgets/MapPreviewWidget.cs b/OpenRA.Game/Widgets/MapPreviewWidget.cs index 9d98e38244..d386f359fc 100644 --- a/OpenRA.Game/Widgets/MapPreviewWidget.cs +++ b/OpenRA.Game/Widgets/MapPreviewWidget.cs @@ -32,7 +32,7 @@ namespace OpenRA.Widgets Lazy tooltipContainer; public int TooltipSpawnIndex = -1; - public MapPreviewWidget() : base() + public MapPreviewWidget() { tooltipContainer = Lazy.New(() => Ui.Root.Get(TooltipContainer)); } diff --git a/OpenRA.Game/Widgets/PasswordFieldWidget.cs b/OpenRA.Game/Widgets/PasswordFieldWidget.cs index 1e180945dc..72c6c878ce 100644 --- a/OpenRA.Game/Widgets/PasswordFieldWidget.cs +++ b/OpenRA.Game/Widgets/PasswordFieldWidget.cs @@ -12,7 +12,7 @@ namespace OpenRA.Widgets { public class PasswordFieldWidget : TextFieldWidget { - public PasswordFieldWidget() : base() { } + public PasswordFieldWidget() { } protected PasswordFieldWidget(PasswordFieldWidget widget) : base(widget) { } protected override string GetApparentText() { return new string('*', Text.Length); } diff --git a/OpenRA.Game/Widgets/PerfGraphWidget.cs b/OpenRA.Game/Widgets/PerfGraphWidget.cs index e72fe4c5e0..018113de60 100644 --- a/OpenRA.Game/Widgets/PerfGraphWidget.cs +++ b/OpenRA.Game/Widgets/PerfGraphWidget.cs @@ -16,7 +16,7 @@ namespace OpenRA.Widgets { public class PerfGraphWidget : Widget { - public PerfGraphWidget() : base() { } + public PerfGraphWidget() { } public override void Draw() { diff --git a/OpenRA.Game/Widgets/ProgressBarWidget.cs b/OpenRA.Game/Widgets/ProgressBarWidget.cs index 8114476131..3d56e353ef 100644 --- a/OpenRA.Game/Widgets/ProgressBarWidget.cs +++ b/OpenRA.Game/Widgets/ProgressBarWidget.cs @@ -22,7 +22,7 @@ namespace OpenRA.Widgets float offset = 0f; float tickStep = 0.04f; - public ProgressBarWidget() : base() {} + public ProgressBarWidget() {} protected ProgressBarWidget(ProgressBarWidget widget) : base(widget) { diff --git a/OpenRA.Game/Widgets/ScrollItemWidget.cs b/OpenRA.Game/Widgets/ScrollItemWidget.cs index 717db47cb6..7f597f5ae8 100644 --- a/OpenRA.Game/Widgets/ScrollItemWidget.cs +++ b/OpenRA.Game/Widgets/ScrollItemWidget.cs @@ -18,7 +18,6 @@ namespace OpenRA.Widgets public string BaseName = "scrollitem"; public ScrollItemWidget() - : base() { IsVisible = () => false; VisualHeight = 0; diff --git a/OpenRA.Game/Widgets/ScrollPanelWidget.cs b/OpenRA.Game/Widgets/ScrollPanelWidget.cs index 878402c79a..dcc2d3c8d5 100644 --- a/OpenRA.Game/Widgets/ScrollPanelWidget.cs +++ b/OpenRA.Game/Widgets/ScrollPanelWidget.cs @@ -41,7 +41,7 @@ namespace OpenRA.Widgets protected Rectangle scrollbarRect; protected Rectangle thumbRect; - public ScrollPanelWidget() : base() { Layout = new ListLayout(this); } + public ScrollPanelWidget() { Layout = new ListLayout(this); } public override void RemoveChildren() { diff --git a/OpenRA.Game/Widgets/ShpImageWidget.cs b/OpenRA.Game/Widgets/ShpImageWidget.cs index f7842aa5fa..4c8cb912a7 100644 --- a/OpenRA.Game/Widgets/ShpImageWidget.cs +++ b/OpenRA.Game/Widgets/ShpImageWidget.cs @@ -28,7 +28,6 @@ namespace OpenRA.Widgets [ObjectCreator.UseCtor] public ShpImageWidget(WorldRenderer worldRenderer) - : base() { GetImage = () => { return Image; }; GetFrame = () => { return Frame; }; diff --git a/OpenRA.Game/Widgets/SliderWidget.cs b/OpenRA.Game/Widgets/SliderWidget.cs index 8b9a05680f..b080386c5a 100755 --- a/OpenRA.Game/Widgets/SliderWidget.cs +++ b/OpenRA.Game/Widgets/SliderWidget.cs @@ -29,7 +29,6 @@ namespace OpenRA.Widgets protected bool isMoving = false; public SliderWidget() - : base() { GetValue = () => Value; } diff --git a/OpenRA.Game/Widgets/TextFieldWidget.cs b/OpenRA.Game/Widgets/TextFieldWidget.cs index b9dc51cd05..50f881fb47 100644 --- a/OpenRA.Game/Widgets/TextFieldWidget.cs +++ b/OpenRA.Game/Widgets/TextFieldWidget.cs @@ -40,7 +40,7 @@ namespace OpenRA.Widgets public Color DisabledColor = Color.Gray; public string Font = "Regular"; - public TextFieldWidget() : base() {} + public TextFieldWidget() {} protected TextFieldWidget(TextFieldWidget widget) : base(widget) { diff --git a/OpenRA.Game/Widgets/ViewportControllerWidget.cs b/OpenRA.Game/Widgets/ViewportControllerWidget.cs index 65d4fafaf1..06b63e7da0 100644 --- a/OpenRA.Game/Widgets/ViewportControllerWidget.cs +++ b/OpenRA.Game/Widgets/ViewportControllerWidget.cs @@ -61,7 +61,6 @@ namespace OpenRA.Widgets [ObjectCreator.UseCtor] public ViewportControllerWidget(World world, WorldRenderer worldRenderer) - : base() { this.world = world; this.worldRenderer = worldRenderer; diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index 2d662087f0..b66990fb39 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -446,7 +446,7 @@ namespace OpenRA.Widgets public class ContainerWidget : Widget { - public ContainerWidget() : base() { IgnoreMouseOver = true; } + public ContainerWidget() { IgnoreMouseOver = true; } public ContainerWidget(ContainerWidget other) : base(other) { IgnoreMouseOver = true; } @@ -458,7 +458,7 @@ namespace OpenRA.Widgets public class WidgetArgs : Dictionary { - public WidgetArgs() : base() { } + public WidgetArgs() { } public WidgetArgs(Dictionary args) : base(args) { } public void Add(string key, Action val) { base.Add(key, val); } } diff --git a/OpenRA.Mods.Cnc/Widgets/ProductionTypeButtonWidget.cs b/OpenRA.Mods.Cnc/Widgets/ProductionTypeButtonWidget.cs index 6cb77cfeee..1b44e6ef7e 100644 --- a/OpenRA.Mods.Cnc/Widgets/ProductionTypeButtonWidget.cs +++ b/OpenRA.Mods.Cnc/Widgets/ProductionTypeButtonWidget.cs @@ -19,7 +19,7 @@ namespace OpenRA.Mods.Cnc.Widgets { public readonly string ProductionGroup; - public ProductionTypeButtonWidget() : base() { } + public ProductionTypeButtonWidget() { } protected ProductionTypeButtonWidget(ProductionTypeButtonWidget other) : base(other) { diff --git a/OpenRA.Mods.RA/AI/RushFuzzy.cs b/OpenRA.Mods.RA/AI/RushFuzzy.cs index afe43e8624..2f68a619f7 100644 --- a/OpenRA.Mods.RA/AI/RushFuzzy.cs +++ b/OpenRA.Mods.RA/AI/RushFuzzy.cs @@ -12,7 +12,7 @@ namespace OpenRA.Mods.RA.AI { class RushFuzzy : AttackOrFleeFuzzy { - public RushFuzzy() : base() { } + public RushFuzzy() { } protected override void AddingRulesForNormalOwnHealth() { diff --git a/OpenRA.Mods.RA/Widgets/ColorMixerWidget.cs b/OpenRA.Mods.RA/Widgets/ColorMixerWidget.cs index fe42bd1399..fe4cd45743 100755 --- a/OpenRA.Mods.RA/Widgets/ColorMixerWidget.cs +++ b/OpenRA.Mods.RA/Widgets/ColorMixerWidget.cs @@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA.Widgets Thread workerThread; bool workerAlive; - public ColorMixerWidget() : base() {} + public ColorMixerWidget() {} public ColorMixerWidget(ColorMixerWidget other) : base(other) { diff --git a/OpenRA.Mods.RA/Widgets/ColorPreviewManagerWidget.cs b/OpenRA.Mods.RA/Widgets/ColorPreviewManagerWidget.cs index d1c26ddd1e..fdf3b8592b 100755 --- a/OpenRA.Mods.RA/Widgets/ColorPreviewManagerWidget.cs +++ b/OpenRA.Mods.RA/Widgets/ColorPreviewManagerWidget.cs @@ -31,7 +31,6 @@ namespace OpenRA.Mods.RA.Widgets [ObjectCreator.UseCtor] public ColorPreviewManagerWidget(WorldRenderer worldRenderer) - : base() { this.worldRenderer = worldRenderer; } diff --git a/OpenRA.Mods.RA/Widgets/HueSliderWidget.cs b/OpenRA.Mods.RA/Widgets/HueSliderWidget.cs index 18b7b878d6..2a43d7695e 100755 --- a/OpenRA.Mods.RA/Widgets/HueSliderWidget.cs +++ b/OpenRA.Mods.RA/Widgets/HueSliderWidget.cs @@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA.Widgets Bitmap hueBitmap; Sprite hueSprite; - public HueSliderWidget() : base() {} + public HueSliderWidget() {} public HueSliderWidget(HueSliderWidget other) : base(other) {} public override void Initialize(WidgetArgs args) diff --git a/OpenRA.Mods.RA/Widgets/ObserverProductionIconsWidget.cs b/OpenRA.Mods.RA/Widgets/ObserverProductionIconsWidget.cs index 7981f81040..af7ff43802 100644 --- a/OpenRA.Mods.RA/Widgets/ObserverProductionIconsWidget.cs +++ b/OpenRA.Mods.RA/Widgets/ObserverProductionIconsWidget.cs @@ -27,7 +27,6 @@ namespace OpenRA.Mods.RA.Widgets [ObjectCreator.UseCtor] public ObserverProductionIconsWidget(World world, WorldRenderer worldRenderer) - : base() { this.world = world; this.worldRenderer = worldRenderer; diff --git a/OpenRA.Mods.RA/Widgets/ObserverSupportPowerIconsWidget.cs b/OpenRA.Mods.RA/Widgets/ObserverSupportPowerIconsWidget.cs index ea2b607338..e192e162c1 100644 --- a/OpenRA.Mods.RA/Widgets/ObserverSupportPowerIconsWidget.cs +++ b/OpenRA.Mods.RA/Widgets/ObserverSupportPowerIconsWidget.cs @@ -27,7 +27,6 @@ namespace OpenRA.Mods.RA.Widgets [ObjectCreator.UseCtor] public ObserverSupportPowerIconsWidget(World world, WorldRenderer worldRenderer) - : base() { this.world = world; diff --git a/OpenRA.Mods.RA/Widgets/SlidingContainerWidget.cs b/OpenRA.Mods.RA/Widgets/SlidingContainerWidget.cs index 134a91014a..538eae178e 100755 --- a/OpenRA.Mods.RA/Widgets/SlidingContainerWidget.cs +++ b/OpenRA.Mods.RA/Widgets/SlidingContainerWidget.cs @@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Widgets int2 offset; int frame; - public SlidingContainerWidget() : base() { } + public SlidingContainerWidget() { } public override void Initialize(WidgetArgs args) { base.Initialize(args);