mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-22 21:25:48 +00:00
misc: chore: Use collection expressions in HLE project
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl
|
||||
{
|
||||
updatedCount = 0;
|
||||
|
||||
List<ManualResetEvent> waiters = new();
|
||||
List<ManualResetEvent> waiters = [];
|
||||
|
||||
for (int i = 0; i < events.Count; i++)
|
||||
{
|
||||
|
||||
@@ -27,9 +27,9 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl
|
||||
|
||||
public LinuxError Poll(List<PollEvent> events, int timeoutMilliseconds, out int updatedCount)
|
||||
{
|
||||
List<ISocketImpl> readEvents = new();
|
||||
List<ISocketImpl> writeEvents = new();
|
||||
List<ISocketImpl> errorEvents = new();
|
||||
List<ISocketImpl> readEvents = [];
|
||||
List<ISocketImpl> writeEvents = [];
|
||||
List<ISocketImpl> errorEvents = [];
|
||||
|
||||
updatedCount = 0;
|
||||
|
||||
@@ -123,9 +123,9 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl
|
||||
|
||||
public LinuxError Select(List<PollEvent> events, int timeout, out int updatedCount)
|
||||
{
|
||||
List<ISocketImpl> readEvents = new();
|
||||
List<ISocketImpl> writeEvents = new();
|
||||
List<ISocketImpl> errorEvents = new();
|
||||
List<ISocketImpl> readEvents = [];
|
||||
List<ISocketImpl> writeEvents = [];
|
||||
List<ISocketImpl> errorEvents = [];
|
||||
|
||||
updatedCount = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user