More target-typed new and redundant paranthesis cleanup

This commit is contained in:
Kwoth
2021-12-20 00:33:11 +01:00
parent 345a9e9524
commit 1b2017024c
152 changed files with 573 additions and 580 deletions

View File

@@ -62,7 +62,7 @@ public sealed partial class MusicQueue : IMusicQueue
public MusicQueue()
{
_index = 0;
_tracks = new LinkedList<QueuedTrackInfo>();
_tracks = new();
}
public IQueuedTrackInfo Enqueue(ITrackInfo trackInfo, string queuer, out int index)
@@ -283,7 +283,7 @@ public sealed partial class MusicQueue : IMusicQueue
_index = i;
}
_tracks = new LinkedList<QueuedTrackInfo>(list);
_tracks = new(list);
}
}