From b2b736abc2569ab5d8199da666aef8d8394844a0 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Mon, 1 Jul 2019 21:39:22 -0500 Subject: Misc cleanup (#708) * Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing --- Ryujinx.Common/Pools/ObjectPool.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ryujinx.Common/Pools/ObjectPool.cs') diff --git a/Ryujinx.Common/Pools/ObjectPool.cs b/Ryujinx.Common/Pools/ObjectPool.cs index dba671bb..e0bf5df6 100644 --- a/Ryujinx.Common/Pools/ObjectPool.cs +++ b/Ryujinx.Common/Pools/ObjectPool.cs @@ -19,7 +19,7 @@ namespace Ryujinx.Common public T Allocate() { - var instance = _firstItem; + T instance = _firstItem; if (instance == null || instance != Interlocked.CompareExchange(ref _firstItem, null, instance)) { @@ -31,11 +31,11 @@ namespace Ryujinx.Common private T AllocateInternal() { - var items = _items; + T[] items = _items; for (int i = 0; i < items.Length; i++) { - var instance = items[i]; + T instance = items[i]; if (instance != null && instance == Interlocked.CompareExchange(ref items[i], null, instance)) { @@ -60,7 +60,7 @@ namespace Ryujinx.Common private void ReleaseInternal(T obj) { - var items = _items; + T[] items = _items; for (int i = 0; i < items.Length; i++) { -- cgit v1.2.3