mirror of https://github.com/ppy/osu
Initialise `Simple{Triple,Quadruple}` only once ever rather than create every time
This commit is contained in:
parent
e4758c9dbb
commit
4e5a1f27a8
|
@ -27,8 +27,8 @@ public TimeSignature(int numerator)
|
|||
Numerator = numerator;
|
||||
}
|
||||
|
||||
public static TimeSignature SimpleTriple => new TimeSignature(3);
|
||||
public static TimeSignature SimpleQuadruple => new TimeSignature(4);
|
||||
public static TimeSignature SimpleTriple { get; } = new TimeSignature(3);
|
||||
public static TimeSignature SimpleQuadruple { get; } = new TimeSignature(4);
|
||||
|
||||
public override string ToString() => $"{Numerator}/4";
|
||||
|
||||
|
|
Loading…
Reference in New Issue