Fix CA1852

This commit is contained in:
RoosterDragon
2023-03-13 18:49:21 +00:00
committed by Pavel Penev
parent 277699cbd5
commit f4af5c1764
310 changed files with 510 additions and 507 deletions

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Platforms.Default
return defaultDevices.Concat(physicalDevices).ToArray();
}
class PoolSlot
sealed class PoolSlot
{
public bool IsActive;
public int FrameStarted;
@@ -386,7 +386,7 @@ namespace OpenRA.Platforms.Default
}
}
class OpenAlSoundSource : ISoundSource
sealed class OpenAlSoundSource : ISoundSource
{
uint buffer;
bool disposed;
@@ -401,7 +401,7 @@ namespace OpenRA.Platforms.Default
AL10.alBufferData(buffer, OpenAlSoundEngine.MakeALFormat(channels, sampleBits), data, byteCount, sampleRate);
}
protected virtual void Dispose(bool disposing)
void Dispose(bool _)
{
if (!disposed)
{
@@ -538,7 +538,7 @@ namespace OpenRA.Platforms.Default
}
}
class OpenAlAsyncLoadSound : OpenAlSound
sealed class OpenAlAsyncLoadSound : OpenAlSound
{
static readonly byte[] SilentData = new byte[2];
readonly CancellationTokenSource cts = new();