Enforce readonly private members where possible.

This commit is contained in:
Dean Herbert
2017-03-23 13:41:50 +09:00
parent 5138890530
commit 54e1b24fe9
115 changed files with 278 additions and 259 deletions

View File

@ -35,9 +35,9 @@ namespace osu.Game.Overlays.Notifications
public virtual bool DisplayOnTop => true;
protected NotificationLight Light;
private CloseButton closeButton;
private readonly CloseButton closeButton;
protected Container IconContent;
private Container content;
private readonly Container content;
protected override Container<Drawable> Content => content;

View File

@ -135,7 +135,7 @@ namespace osu.Game.Overlays.Notifications
private class ClearAllButton : ClickableContainer
{
private OsuSpriteText text;
private readonly OsuSpriteText text;
public ClearAllButton()
{

View File

@ -104,12 +104,12 @@ namespace osu.Game.Overlays.Notifications
public override bool DisplayOnTop => false;
private ProgressBar progressBar;
private readonly ProgressBar progressBar;
private Color4 colourQueued;
private Color4 colourActive;
private Color4 colourCancelled;
private SpriteText textDrawable;
private readonly SpriteText textDrawable;
public ProgressNotification()
{

View File

@ -34,8 +34,8 @@ namespace osu.Game.Overlays.Notifications
}
}
private SpriteText textDrawable;
private TextAwesome iconDrawable;
private readonly SpriteText textDrawable;
private readonly TextAwesome iconDrawable;
protected Box IconBackgound;