From 43ebb93ff60151c414d7f8d3d62ae1cd855993c6 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Sat, 18 Mar 2023 12:20:20 +0000 Subject: [PATCH] Fix RCS1071 --- .editorconfig | 3 +++ OpenRA.Game/Map/ActorInitializer.cs | 3 +-- OpenRA.Mods.Common/Widgets/ExponentialSliderWidget.cs | 3 +-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9e1052f1b7..aefd0543fc 100644 --- a/.editorconfig +++ b/.editorconfig @@ -986,6 +986,9 @@ dotnet_diagnostic.RCS1066.severity = warning # Simplify logical negation. dotnet_diagnostic.RCS1068.severity = warning +# Remove redundant base constructor call. +dotnet_diagnostic.RCS1071.severity = warning + # Remove empty namespace declaration. dotnet_diagnostic.RCS1072.severity = warning diff --git a/OpenRA.Game/Map/ActorInitializer.cs b/OpenRA.Game/Map/ActorInitializer.cs index cf6d7dc403..774aab4094 100644 --- a/OpenRA.Game/Map/ActorInitializer.cs +++ b/OpenRA.Game/Map/ActorInitializer.cs @@ -175,8 +175,7 @@ namespace OpenRA protected CompositeActorInit(TraitInfo info) : base(info.InstanceName) { } - protected CompositeActorInit() - : base() { } + protected CompositeActorInit() { } public virtual void Initialize(MiniYaml yaml) { diff --git a/OpenRA.Mods.Common/Widgets/ExponentialSliderWidget.cs b/OpenRA.Mods.Common/Widgets/ExponentialSliderWidget.cs index 89c47bd540..cd5fd01354 100644 --- a/OpenRA.Mods.Common/Widgets/ExponentialSliderWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ExponentialSliderWidget.cs @@ -19,8 +19,7 @@ namespace OpenRA.Mods.Common.Widgets public double ExpA = 1.0e-3; public double ExpB = 6.908; - public ExponentialSliderWidget() - : base() { } + public ExponentialSliderWidget() { } public ExponentialSliderWidget(ExponentialSliderWidget other) : base(other) { }