mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-07 05:45:46 +00:00
misc: chore: Use collection expressions in HLE project
This commit is contained in:
@@ -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