From 674155a8dd800ca1214743963f29efdc767bce3b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 8 Jun 2019 12:59:02 +0100 Subject: [PATCH] Move ctor initializers to their own line. --- OpenRA.Game/CPos.cs | 3 ++- OpenRA.Game/FieldLoader.cs | 3 ++- OpenRA.Game/Map/ActorReference.cs | 3 ++- OpenRA.Game/Map/MapPlayers.cs | 3 ++- OpenRA.Game/MiniYaml.cs | 6 ++++-- OpenRA.Game/Primitives/BitSet.cs | 4 +++- OpenRA.Game/Primitives/ObservableCollection.cs | 3 ++- OpenRA.Game/Primitives/PriorityQueue.cs | 5 ++--- OpenRA.Game/Support/MersenneTwister.cs | 3 ++- OpenRA.Game/Support/VariableExpression.cs | 9 ++++++--- OpenRA.Game/Widgets/Widget.cs | 3 ++- .../Traits/Buildings/TiberianSunRefinery.cs | 3 ++- .../ImportRedAlertLegacyMapCommand.cs | 3 ++- .../ImportTiberianDawnLegacyMapCommand.cs | 3 ++- OpenRA.Mods.Common/FileFormats/AudReader.cs | 3 ++- OpenRA.Mods.Common/FileFormats/WavReader.cs | 3 ++- .../Orders/GlobalButtonOrderGenerator.cs | 6 ++++-- .../Scripting/Global/ActorGlobal.cs | 3 ++- .../Scripting/Global/CoordinateGlobals.cs | 15 ++++++++++----- .../Scripting/Global/PlayerGlobal.cs | 3 ++- .../Scripting/Global/RadarGlobal.cs | 3 ++- .../Scripting/Global/TriggerGlobal.cs | 3 ++- .../Traits/BotModules/Squads/Squad.cs | 3 ++- OpenRA.Mods.Common/Traits/Buildings/FreeActor.cs | 3 ++- .../Traits/Conditions/PausableConditionalTrait.cs | 6 +++++- OpenRA.Mods.Common/Traits/DamagedByTerrain.cs | 3 ++- OpenRA.Mods.Common/Traits/DetectCloaked.cs | 3 ++- OpenRA.Mods.Common/Traits/RepairsUnits.cs | 3 ++- .../Traits/SupportPowers/SpawnActorPower.cs | 4 +++- .../Traits/World/ActorSpawnManager.cs | 3 ++- OpenRA.Mods.Common/Widgets/HueSliderWidget.cs | 3 ++- OpenRA.Mods.Common/Widgets/PasswordFieldWidget.cs | 3 ++- OpenRA.Platforms.Default/Sdl2HardwareCursor.cs | 7 +++++-- 33 files changed, 90 insertions(+), 44 deletions(-) diff --git a/OpenRA.Game/CPos.cs b/OpenRA.Game/CPos.cs index 6e9e3860b4..a558975479 100644 --- a/OpenRA.Game/CPos.cs +++ b/OpenRA.Game/CPos.cs @@ -34,7 +34,8 @@ namespace OpenRA public byte Layer { get { return (byte)Bits; } } public CPos(int bits) { Bits = bits; } - public CPos(int x, int y) : this(x, y, 0) { } + public CPos(int x, int y) + : this(x, y, 0) { } public CPos(int x, int y, byte layer) { Bits = (x & 0xFFF) << 20 | (y & 0xFFF) << 8 | layer; diff --git a/OpenRA.Game/FieldLoader.cs b/OpenRA.Game/FieldLoader.cs index cc305bd17f..229fd6e34e 100644 --- a/OpenRA.Game/FieldLoader.cs +++ b/OpenRA.Game/FieldLoader.cs @@ -40,7 +40,8 @@ namespace OpenRA } } - public MissingFieldsException(string[] missing, string header = null, string headerSingle = null) : base(null) + public MissingFieldsException(string[] missing, string header = null, string headerSingle = null) + : base(null) { Header = missing.Length > 1 ? header : headerSingle ?? header; Missing = missing; diff --git a/OpenRA.Game/Map/ActorReference.cs b/OpenRA.Game/Map/ActorReference.cs index b907df5ad8..7fa37128bf 100644 --- a/OpenRA.Game/Map/ActorReference.cs +++ b/OpenRA.Game/Map/ActorReference.cs @@ -28,7 +28,8 @@ namespace OpenRA Lazy initDict; - public ActorReference(string type) : this(type, new Dictionary()) { } + public ActorReference(string type) + : this(type, new Dictionary()) { } public ActorReference(string type, Dictionary inits) { diff --git a/OpenRA.Game/Map/MapPlayers.cs b/OpenRA.Game/Map/MapPlayers.cs index cc5497b1d6..3e817ecb54 100644 --- a/OpenRA.Game/Map/MapPlayers.cs +++ b/OpenRA.Game/Map/MapPlayers.cs @@ -19,7 +19,8 @@ namespace OpenRA { public readonly Dictionary Players; - public MapPlayers() : this(new List()) { } + public MapPlayers() + : this(new List()) { } public MapPlayers(IEnumerable playerDefinitions) { diff --git a/OpenRA.Game/MiniYaml.cs b/OpenRA.Game/MiniYaml.cs index 31a6c46ceb..2a58f0c199 100644 --- a/OpenRA.Game/MiniYaml.cs +++ b/OpenRA.Game/MiniYaml.cs @@ -133,7 +133,8 @@ namespace OpenRA return ret; } - public MiniYaml(string value) : this(value, null) { } + public MiniYaml(string value) + : this(value, null) { } public MiniYaml(string value, List nodes) { @@ -474,6 +475,7 @@ namespace OpenRA [Serializable] public class YamlException : Exception { - public YamlException(string s) : base(s) { } + public YamlException(string s) + : base(s) { } } } diff --git a/OpenRA.Game/Primitives/BitSet.cs b/OpenRA.Game/Primitives/BitSet.cs index 55cc68576b..066e59e84f 100644 --- a/OpenRA.Game/Primitives/BitSet.cs +++ b/OpenRA.Game/Primitives/BitSet.cs @@ -84,7 +84,9 @@ namespace OpenRA.Primitives { readonly BitSetIndex bits; - public BitSet(params string[] values) : this(BitSetAllocator.GetBits(values)) { } + public BitSet(params string[] values) + : this(BitSetAllocator.GetBits(values)) { } + BitSet(BitSetIndex bits) { this.bits = bits; } public static BitSet FromStringsNoAlloc(string[] values) diff --git a/OpenRA.Game/Primitives/ObservableCollection.cs b/OpenRA.Game/Primitives/ObservableCollection.cs index 8b2156238b..28ad8718d9 100644 --- a/OpenRA.Game/Primitives/ObservableCollection.cs +++ b/OpenRA.Game/Primitives/ObservableCollection.cs @@ -29,7 +29,8 @@ namespace OpenRA.Primitives public event Action OnRefresh = x => { }; public ObservableCollection() { } - public ObservableCollection(IList list) : base(list) { } + public ObservableCollection(IList list) + : base(list) { } protected override void SetItem(int index, T item) { diff --git a/OpenRA.Game/Primitives/PriorityQueue.cs b/OpenRA.Game/Primitives/PriorityQueue.cs index 5a0ba8c0e0..0d26fa4290 100644 --- a/OpenRA.Game/Primitives/PriorityQueue.cs +++ b/OpenRA.Game/Primitives/PriorityQueue.cs @@ -28,9 +28,8 @@ namespace OpenRA.Primitives readonly IComparer comparer; int level, index; - public PriorityQueue() : this(Comparer.Default) - { - } + public PriorityQueue() + : this(Comparer.Default) { } public PriorityQueue(IComparer comparer) { diff --git a/OpenRA.Game/Support/MersenneTwister.cs b/OpenRA.Game/Support/MersenneTwister.cs index 048e5c3ee0..c6c734f6fd 100644 --- a/OpenRA.Game/Support/MersenneTwister.cs +++ b/OpenRA.Game/Support/MersenneTwister.cs @@ -22,7 +22,8 @@ namespace OpenRA.Support public int Last; public int TotalCount = 0; - public MersenneTwister() : this(Environment.TickCount) { } + public MersenneTwister() + : this(Environment.TickCount) { } public MersenneTwister(int seed) { diff --git a/OpenRA.Game/Support/VariableExpression.cs b/OpenRA.Game/Support/VariableExpression.cs index a65c24ca86..13f630cf86 100644 --- a/OpenRA.Game/Support/VariableExpression.cs +++ b/OpenRA.Game/Support/VariableExpression.cs @@ -561,7 +561,8 @@ namespace OpenRA.Support public override string Symbol { get { return Name; } } - public VariableToken(int index, string symbol) : base(TokenType.Variable, index) { Name = symbol; } + public VariableToken(int index, string symbol) + : base(TokenType.Variable, index) { Name = symbol; } } class NumberToken : Token @@ -957,7 +958,8 @@ namespace OpenRA.Support { readonly Func, bool> asFunction; - public BooleanExpression(string expression) : base(expression) + public BooleanExpression(string expression) + : base(expression) { asFunction = Compile(); } @@ -972,7 +974,8 @@ namespace OpenRA.Support { readonly Func, int> asFunction; - public IntegerExpression(string expression) : base(expression) + public IntegerExpression(string expression) + : base(expression) { asFunction = Compile(); } diff --git a/OpenRA.Game/Widgets/Widget.cs b/OpenRA.Game/Widgets/Widget.cs index 5c5d489616..b1ac4d32db 100644 --- a/OpenRA.Game/Widgets/Widget.cs +++ b/OpenRA.Game/Widgets/Widget.cs @@ -587,7 +587,8 @@ namespace OpenRA.Widgets public class WidgetArgs : Dictionary { public WidgetArgs() { } - public WidgetArgs(Dictionary args) : base(args) { } + public WidgetArgs(Dictionary args) + : base(args) { } public void Add(string key, Action val) { base.Add(key, val); } } } diff --git a/OpenRA.Mods.Cnc/Traits/Buildings/TiberianSunRefinery.cs b/OpenRA.Mods.Cnc/Traits/Buildings/TiberianSunRefinery.cs index 147ac3dc94..6fa47fcc61 100644 --- a/OpenRA.Mods.Cnc/Traits/Buildings/TiberianSunRefinery.cs +++ b/OpenRA.Mods.Cnc/Traits/Buildings/TiberianSunRefinery.cs @@ -22,7 +22,8 @@ namespace OpenRA.Mods.Cnc.Traits public class TiberianSunRefinery : Refinery { - public TiberianSunRefinery(Actor self, RefineryInfo info) : base(self, info) { } + public TiberianSunRefinery(Actor self, RefineryInfo info) + : base(self, info) { } public override Activity DockSequence(Actor harv, Actor self) { diff --git a/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs b/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs index 3c2ce9cb02..3322d9415e 100644 --- a/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs +++ b/OpenRA.Mods.Cnc/UtilityCommands/ImportRedAlertLegacyMapCommand.cs @@ -23,7 +23,8 @@ namespace OpenRA.Mods.Cnc.UtilityCommands class ImportRedAlertLegacyMapCommand : ImportLegacyMapCommand, IUtilityCommand { // TODO: 128x128 is probably not true for "mega maps" from the expansions. - public ImportRedAlertLegacyMapCommand() : base(128) { } + public ImportRedAlertLegacyMapCommand() + : base(128) { } string IUtilityCommand.Name { get { return "--import-ra-map"; } } bool IUtilityCommand.ValidateArguments(string[] args) { return ValidateArguments(args); } diff --git a/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianDawnLegacyMapCommand.cs b/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianDawnLegacyMapCommand.cs index 6bcce1dc22..e16990f4ed 100644 --- a/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianDawnLegacyMapCommand.cs +++ b/OpenRA.Mods.Cnc/UtilityCommands/ImportTiberianDawnLegacyMapCommand.cs @@ -22,7 +22,8 @@ namespace OpenRA.Mods.Cnc.UtilityCommands class ImportTiberianDawnLegacyMapCommand : ImportLegacyMapCommand, IUtilityCommand { // NOTE: 64x64 map size is a C&C95 engine limitation - public ImportTiberianDawnLegacyMapCommand() : base(64) { } + public ImportTiberianDawnLegacyMapCommand() + : base(64) { } string IUtilityCommand.Name { get { return "--import-td-map"; } } bool IUtilityCommand.ValidateArguments(string[] args) { return ValidateArguments(args); } diff --git a/OpenRA.Mods.Common/FileFormats/AudReader.cs b/OpenRA.Mods.Common/FileFormats/AudReader.cs index 737362105b..b03541063d 100644 --- a/OpenRA.Mods.Common/FileFormats/AudReader.cs +++ b/OpenRA.Mods.Common/FileFormats/AudReader.cs @@ -164,7 +164,8 @@ namespace OpenRA.Mods.Common.FileFormats int baseOffset; int index; - public AudStream(Stream stream, int outputSize, int dataSize) : base(stream) + public AudStream(Stream stream, int outputSize, int dataSize) + : base(stream) { this.outputSize = outputSize; this.dataSize = dataSize; diff --git a/OpenRA.Mods.Common/FileFormats/WavReader.cs b/OpenRA.Mods.Common/FileFormats/WavReader.cs index 19452930b4..12cf593b92 100644 --- a/OpenRA.Mods.Common/FileFormats/WavReader.cs +++ b/OpenRA.Mods.Common/FileFormats/WavReader.cs @@ -137,7 +137,8 @@ namespace OpenRA.Mods.Common.FileFormats int outOffset; int currentBlock; - public WavStream(Stream stream, int dataSize, short blockAlign, short channels, int uncompressedSize) : base(stream) + public WavStream(Stream stream, int dataSize, short blockAlign, short channels, int uncompressedSize) + : base(stream) { this.channels = channels; numBlocks = dataSize / blockAlign; diff --git a/OpenRA.Mods.Common/Orders/GlobalButtonOrderGenerator.cs b/OpenRA.Mods.Common/Orders/GlobalButtonOrderGenerator.cs index 9ca9612665..554ea97166 100644 --- a/OpenRA.Mods.Common/Orders/GlobalButtonOrderGenerator.cs +++ b/OpenRA.Mods.Common/Orders/GlobalButtonOrderGenerator.cs @@ -69,7 +69,8 @@ namespace OpenRA.Mods.Common.Orders public class PowerDownOrderGenerator : GlobalButtonOrderGenerator { - public PowerDownOrderGenerator() : base("PowerDown") { } + public PowerDownOrderGenerator() + : base("PowerDown") { } protected override bool IsValidTrait(ToggleConditionOnOrder t) { @@ -85,7 +86,8 @@ namespace OpenRA.Mods.Common.Orders public class SellOrderGenerator : GlobalButtonOrderGenerator { - public SellOrderGenerator() : base("Sell") { } + public SellOrderGenerator() + : base("Sell") { } protected override string GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi) { diff --git a/OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs index e234110c2b..bc029014ec 100644 --- a/OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/ActorGlobal.cs @@ -21,7 +21,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("Actor")] public class ActorGlobal : ScriptGlobal { - public ActorGlobal(ScriptContext context) : base(context) { } + public ActorGlobal(ScriptContext context) + : base(context) { } [Desc("Create a new actor. initTable specifies a list of key-value pairs that defines the initial parameters for the actor's traits.")] public Actor Create(string type, bool addToWorld, LuaTable initTable) diff --git a/OpenRA.Mods.Common/Scripting/Global/CoordinateGlobals.cs b/OpenRA.Mods.Common/Scripting/Global/CoordinateGlobals.cs index 2a76373a3d..9f5cbdfce7 100644 --- a/OpenRA.Mods.Common/Scripting/Global/CoordinateGlobals.cs +++ b/OpenRA.Mods.Common/Scripting/Global/CoordinateGlobals.cs @@ -15,7 +15,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("CPos")] public class CPosGlobal : ScriptGlobal { - public CPosGlobal(ScriptContext context) : base(context) { } + public CPosGlobal(ScriptContext context) + : base(context) { } [Desc("Create a new CPos with the specified coordinates.")] public CPos New(int x, int y) { return new CPos(x, y); } @@ -27,7 +28,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("CVec")] public class CVecGlobal : ScriptGlobal { - public CVecGlobal(ScriptContext context) : base(context) { } + public CVecGlobal(ScriptContext context) + : base(context) { } [Desc("Create a new CVec with the specified coordinates.")] public CVec New(int x, int y) { return new CVec(x, y); } @@ -39,7 +41,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("WPos")] public class WPosGlobal : ScriptGlobal { - public WPosGlobal(ScriptContext context) : base(context) { } + public WPosGlobal(ScriptContext context) + : base(context) { } [Desc("Create a new WPos with the specified coordinates.")] public WPos New(int x, int y, int z) { return new WPos(x, y, z); } @@ -51,7 +54,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("WVec")] public class WVecGlobal : ScriptGlobal { - public WVecGlobal(ScriptContext context) : base(context) { } + public WVecGlobal(ScriptContext context) + : base(context) { } [Desc("Create a new WVec with the specified coordinates.")] public WVec New(int x, int y, int z) { return new WVec(x, y, z); } @@ -63,7 +67,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("WDist")] public class WDistGlobal : ScriptGlobal { - public WDistGlobal(ScriptContext context) : base(context) { } + public WDistGlobal(ScriptContext context) + : base(context) { } [Desc("Create a new WDist.")] public WDist New(int r) { return new WDist(r); } diff --git a/OpenRA.Mods.Common/Scripting/Global/PlayerGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/PlayerGlobal.cs index ec8f0a3555..e0fb67b87f 100644 --- a/OpenRA.Mods.Common/Scripting/Global/PlayerGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/PlayerGlobal.cs @@ -18,7 +18,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("Player")] public class PlayerGlobal : ScriptGlobal { - public PlayerGlobal(ScriptContext context) : base(context) { } + public PlayerGlobal(ScriptContext context) + : base(context) { } [Desc("Returns the player with the specified internal name, or nil if a match is not found.")] public Player GetPlayer(string name) diff --git a/OpenRA.Mods.Common/Scripting/Global/RadarGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/RadarGlobal.cs index 68bbc17772..a659215b57 100644 --- a/OpenRA.Mods.Common/Scripting/Global/RadarGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/RadarGlobal.cs @@ -20,7 +20,8 @@ namespace OpenRA.Mods.Common.Scripting { readonly RadarPings radarPings; - public RadarGlobal(ScriptContext context) : base(context) + public RadarGlobal(ScriptContext context) + : base(context) { radarPings = context.World.WorldActor.TraitOrDefault(); } diff --git a/OpenRA.Mods.Common/Scripting/Global/TriggerGlobal.cs b/OpenRA.Mods.Common/Scripting/Global/TriggerGlobal.cs index 6cf889d8aa..187bc4e833 100644 --- a/OpenRA.Mods.Common/Scripting/Global/TriggerGlobal.cs +++ b/OpenRA.Mods.Common/Scripting/Global/TriggerGlobal.cs @@ -20,7 +20,8 @@ namespace OpenRA.Mods.Common.Scripting [ScriptGlobal("Trigger")] public class TriggerGlobal : ScriptGlobal { - public TriggerGlobal(ScriptContext context) : base(context) { } + public TriggerGlobal(ScriptContext context) + : base(context) { } public static ScriptTriggers GetScriptTriggers(Actor a) { diff --git a/OpenRA.Mods.Common/Traits/BotModules/Squads/Squad.cs b/OpenRA.Mods.Common/Traits/BotModules/Squads/Squad.cs index c48cb31ad5..4b93c59f9c 100644 --- a/OpenRA.Mods.Common/Traits/BotModules/Squads/Squad.cs +++ b/OpenRA.Mods.Common/Traits/BotModules/Squads/Squad.cs @@ -31,7 +31,8 @@ namespace OpenRA.Mods.Common.Traits.BotModules.Squads internal Target Target; internal StateMachine FuzzyStateMachine; - public Squad(IBot bot, SquadManagerBotModule squadManager, SquadType type) : this(bot, squadManager, type, null) { } + public Squad(IBot bot, SquadManagerBotModule squadManager, SquadType type) + : this(bot, squadManager, type, null) { } public Squad(IBot bot, SquadManagerBotModule squadManager, SquadType type, Actor target) { diff --git a/OpenRA.Mods.Common/Traits/Buildings/FreeActor.cs b/OpenRA.Mods.Common/Traits/Buildings/FreeActor.cs index dbef7b2651..2f6ce6b045 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/FreeActor.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/FreeActor.cs @@ -39,7 +39,8 @@ namespace OpenRA.Mods.Common.Traits { bool allowSpawn; - public FreeActor(ActorInitializer init, FreeActorInfo info) : base(info) + public FreeActor(ActorInitializer init, FreeActorInfo info) + : base(info) { allowSpawn = !init.Contains() || init.Get().ActorValue; } diff --git a/OpenRA.Mods.Common/Traits/Conditions/PausableConditionalTrait.cs b/OpenRA.Mods.Common/Traits/Conditions/PausableConditionalTrait.cs index 7dd60df53b..355ff5d25a 100644 --- a/OpenRA.Mods.Common/Traits/Conditions/PausableConditionalTrait.cs +++ b/OpenRA.Mods.Common/Traits/Conditions/PausableConditionalTrait.cs @@ -41,7 +41,11 @@ namespace OpenRA.Mods.Common.Traits [Sync] public bool IsTraitPaused { get; private set; } - protected PausableConditionalTrait(InfoType info) : base(info) { IsTraitPaused = info.PausedByDefault; } + protected PausableConditionalTrait(InfoType info) + : base(info) + { + IsTraitPaused = info.PausedByDefault; + } protected override void Created(Actor self) { diff --git a/OpenRA.Mods.Common/Traits/DamagedByTerrain.cs b/OpenRA.Mods.Common/Traits/DamagedByTerrain.cs index 52eb44f062..a18c8d09d3 100644 --- a/OpenRA.Mods.Common/Traits/DamagedByTerrain.cs +++ b/OpenRA.Mods.Common/Traits/DamagedByTerrain.cs @@ -51,7 +51,8 @@ namespace OpenRA.Mods.Common.Traits [Sync] int damageThreshold; - public DamagedByTerrain(Actor self, DamagedByTerrainInfo info) : base(info) + public DamagedByTerrain(Actor self, DamagedByTerrainInfo info) + : base(info) { health = self.Trait(); } diff --git a/OpenRA.Mods.Common/Traits/DetectCloaked.cs b/OpenRA.Mods.Common/Traits/DetectCloaked.cs index baaafc4240..272120aa4c 100644 --- a/OpenRA.Mods.Common/Traits/DetectCloaked.cs +++ b/OpenRA.Mods.Common/Traits/DetectCloaked.cs @@ -26,6 +26,7 @@ namespace OpenRA.Mods.Common.Traits public class DetectCloaked : ConditionalTrait { - public DetectCloaked(DetectCloakedInfo info) : base(info) { } + public DetectCloaked(DetectCloakedInfo info) + : base(info) { } } } diff --git a/OpenRA.Mods.Common/Traits/RepairsUnits.cs b/OpenRA.Mods.Common/Traits/RepairsUnits.cs index 5039cfdbf5..5baee6e6ae 100644 --- a/OpenRA.Mods.Common/Traits/RepairsUnits.cs +++ b/OpenRA.Mods.Common/Traits/RepairsUnits.cs @@ -39,6 +39,7 @@ namespace OpenRA.Mods.Common.Traits public class RepairsUnits : PausableConditionalTrait { - public RepairsUnits(RepairsUnitsInfo info) : base(info) { } + public RepairsUnits(RepairsUnitsInfo info) + : base(info) { } } } diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/SpawnActorPower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/SpawnActorPower.cs index 16a2f4c6ff..33bf7b1d41 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/SpawnActorPower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/SpawnActorPower.cs @@ -42,7 +42,9 @@ namespace OpenRA.Mods.Common.Traits public class SpawnActorPower : SupportPower { - public SpawnActorPower(Actor self, SpawnActorPowerInfo info) : base(self, info) { } + public SpawnActorPower(Actor self, SpawnActorPowerInfo info) + : base(self, info) { } + public override void Activate(Actor self, Order order, SupportPowerManager manager) { base.Activate(self, order, manager); diff --git a/OpenRA.Mods.Common/Traits/World/ActorSpawnManager.cs b/OpenRA.Mods.Common/Traits/World/ActorSpawnManager.cs index 6854859090..4124560f13 100644 --- a/OpenRA.Mods.Common/Traits/World/ActorSpawnManager.cs +++ b/OpenRA.Mods.Common/Traits/World/ActorSpawnManager.cs @@ -49,7 +49,8 @@ namespace OpenRA.Mods.Common.Traits int spawnCountdown; int actorsPresent; - public ActorSpawnManager(Actor self, ActorSpawnManagerInfo info) : base(info) + public ActorSpawnManager(Actor self, ActorSpawnManagerInfo info) + : base(info) { this.info = info; } diff --git a/OpenRA.Mods.Common/Widgets/HueSliderWidget.cs b/OpenRA.Mods.Common/Widgets/HueSliderWidget.cs index b1f82c086c..5013bc018a 100644 --- a/OpenRA.Mods.Common/Widgets/HueSliderWidget.cs +++ b/OpenRA.Mods.Common/Widgets/HueSliderWidget.cs @@ -20,7 +20,8 @@ namespace OpenRA.Mods.Common.Widgets Sprite hueSprite; public HueSliderWidget() { } - public HueSliderWidget(HueSliderWidget other) : base(other) { } + public HueSliderWidget(HueSliderWidget other) + : base(other) { } public override void Initialize(WidgetArgs args) { diff --git a/OpenRA.Mods.Common/Widgets/PasswordFieldWidget.cs b/OpenRA.Mods.Common/Widgets/PasswordFieldWidget.cs index 67f32ed4aa..c97c085d38 100644 --- a/OpenRA.Mods.Common/Widgets/PasswordFieldWidget.cs +++ b/OpenRA.Mods.Common/Widgets/PasswordFieldWidget.cs @@ -16,7 +16,8 @@ namespace OpenRA.Mods.Common.Widgets public class PasswordFieldWidget : TextFieldWidget { public PasswordFieldWidget() { } - protected PasswordFieldWidget(PasswordFieldWidget widget) : base(widget) { } + protected PasswordFieldWidget(PasswordFieldWidget widget) + : base(widget) { } protected override string GetApparentText() { return new string('*', Text.Length); } public override Widget Clone() { return new PasswordFieldWidget(this); } diff --git a/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs b/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs index 01cdb9d3ef..7efdcdcc1d 100644 --- a/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs +++ b/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs @@ -19,8 +19,11 @@ namespace OpenRA.Platforms.Default { class Sdl2HardwareCursorException : Exception { - public Sdl2HardwareCursorException(string message) : base(message) { } - public Sdl2HardwareCursorException(string message, Exception innerException) : base(message, innerException) { } + public Sdl2HardwareCursorException(string message) + : base(message) { } + + public Sdl2HardwareCursorException(string message, Exception innerException) + : base(message, innerException) { } } sealed class Sdl2HardwareCursor : IHardwareCursor