Style fixes

This commit is contained in:
Pavlos Touboulidis
2014-04-26 03:18:12 +03:00
parent e5e97c9a11
commit ddabe080cd
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
}
}
}

View File

@@ -172,7 +172,7 @@ namespace OpenRA.Widgets
{
var lines = text.Split('\n').ToList();
for (int i=0; i<lines.Count; i++)
for (var i=0; i<lines.Count; i++)
{
var line = lines[i];
var m = font.Measure(line);
@@ -185,7 +185,7 @@ namespace OpenRA.Widgets
while (m.X > width)
{
int spaceIndex = line.LastIndexOf(' ', start);
var spaceIndex = line.LastIndexOf(' ', start);
if (spaceIndex == -1)
break;
bestSpaceIndex = spaceIndex;