From ddabe080cd07ad08d36473fb67875dc5eecdc065 Mon Sep 17 00:00:00 2001 From: Pavlos Touboulidis Date: Sat, 26 Apr 2014 03:18:12 +0300 Subject: [PATCH] Style fixes --- OpenRA.Game/Widgets/ChatDisplayWidget.cs | 8 ++++---- OpenRA.Game/Widgets/WidgetUtils.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenRA.Game/Widgets/ChatDisplayWidget.cs b/OpenRA.Game/Widgets/ChatDisplayWidget.cs index affee3f5ad..e7bd0ee837 100644 --- a/OpenRA.Game/Widgets/ChatDisplayWidget.cs +++ b/OpenRA.Game/Widgets/ChatDisplayWidget.cs @@ -104,10 +104,10 @@ namespace OpenRA.Widgets public ChatLine(string owner, string text, uint expiration, Color color) { - this.Owner = owner; - this.Text = text; - this.Expiration = expiration; - this.Color = color; + Owner = owner; + Text = text; + Expiration = expiration; + Color = color; } } } \ No newline at end of file diff --git a/OpenRA.Game/Widgets/WidgetUtils.cs b/OpenRA.Game/Widgets/WidgetUtils.cs index 7ab7270407..573a824d80 100644 --- a/OpenRA.Game/Widgets/WidgetUtils.cs +++ b/OpenRA.Game/Widgets/WidgetUtils.cs @@ -172,7 +172,7 @@ namespace OpenRA.Widgets { var lines = text.Split('\n').ToList(); - for (int i=0; i width) { - int spaceIndex = line.LastIndexOf(' ', start); + var spaceIndex = line.LastIndexOf(' ', start); if (spaceIndex == -1) break; bestSpaceIndex = spaceIndex;