Fix most warnings.

This commit is contained in:
Dean Herbert
2017-03-07 10:59:19 +09:00
parent 9106c45858
commit 0cad5d7d41
168 changed files with 504 additions and 473 deletions

View File

@ -12,7 +12,7 @@ using System.Linq;
namespace osu.Game.Screens.Tournament.Components
{
class VisualiserContainer : Container
internal class VisualiserContainer : Container
{
/// <summary>
/// Number of lines in the visualiser.
@ -36,7 +36,7 @@ namespace osu.Game.Screens.Tournament.Components
private void addLine()
{
VisualiserLine newLine = new VisualiserLine()
VisualiserLine newLine = new VisualiserLine
{
RelativeSizeAxes = Axes.Both,
@ -59,7 +59,7 @@ namespace osu.Game.Screens.Tournament.Components
allLines.Remove(allLines.First());
}
class VisualiserLine : Container
private class VisualiserLine : Container
{
/// <summary>
/// Time offset.
@ -72,7 +72,7 @@ namespace osu.Game.Screens.Tournament.Components
private Texture texture;
private int expiredCount = 0;
private int expiredCount;
[BackgroundDependencyLoader]
private void load(TextureStore textures)
@ -106,7 +106,7 @@ namespace osu.Game.Screens.Tournament.Components
private void addLine()
{
Add(new Sprite()
Add(new Sprite
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,

View File

@ -120,7 +120,7 @@ namespace osu.Game.Screens.Tournament
return sb.ToString();
}
class GroupTeam : Container
private class GroupTeam : Container
{
public Team Team;

View File

@ -296,7 +296,7 @@ namespace osu.Game.Screens.Tournament
TransformFloatTo(speed, value, duration, easing, new TransformScrollSpeed());
}
enum ScrollState
private enum ScrollState
{
None,
Idle,

View File

@ -33,7 +33,7 @@ namespace osu.Game.Screens.Tournament.Teams
{
while (sr.Peek() != -1)
{
string line = sr.ReadLine().Trim();
string line = sr.ReadLine()?.Trim();
if (string.IsNullOrEmpty(line))
continue;
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Tournament.Teams
string acronym = split.Length >= 3 ? split[2].Trim() : teamName;
acronym = acronym.Substring(0, Math.Min(3, acronym.Length));
teams.Add(new Team()
teams.Add(new Team
{
FlagName = flagName,
FullName = teamName,