1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

Fix CI inspections

This commit is contained in:
Lucas A 2019-08-14 21:52:36 +02:00
parent 46e71e9ead
commit 4d1b1a4022
2 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,7 @@ namespace osu.Game.Overlays.News
{ {
public abstract class NewsContent : FillFlowContainer public abstract class NewsContent : FillFlowContainer
{ {
public NewsContent() protected NewsContent()
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;

View File

@ -15,6 +15,8 @@ namespace osu.Game.Overlays
public class NewsOverlay : FullscreenOverlay public class NewsOverlay : FullscreenOverlay
{ {
private NewsHeader header; private NewsHeader header;
//ReSharper disable NotAccessedField.Local
private Container<NewsContent> content; private Container<NewsContent> content;
public readonly Bindable<string> Current = new Bindable<string>(null); public readonly Bindable<string> Current = new Bindable<string>(null);
@ -39,11 +41,11 @@ namespace osu.Game.Overlays
Direction = FillDirection.Vertical, Direction = FillDirection.Vertical,
Children = new Drawable[] Children = new Drawable[]
{ {
header = new NewsHeader() header = new NewsHeader
{ {
ShowFrontPage = ShowFrontPage ShowFrontPage = ShowFrontPage
}, },
content = new Container<NewsContent>() content = new Container<NewsContent>
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,