From 8aea17047926f9c2a4bef4e696f1040fa82f0ef7 Mon Sep 17 00:00:00 2001 From: Soreepeong Date: Fri, 10 Mar 2023 22:54:57 +0900 Subject: [PATCH] Use UsedImplicitly instead of resharper comments --- Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs b/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs index 970c55fee..3e88780eb 100644 --- a/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs +++ b/Dalamud/Hooking/Internal/FunctionPointerVariableHook.cs @@ -5,6 +5,7 @@ using System.Reflection; using System.Runtime.InteropServices; using Dalamud.Memory; +using JetBrains.Annotations; namespace Dalamud.Hooking.Internal; @@ -18,7 +19,7 @@ internal class FunctionPointerVariableHook : Hook private readonly nint pfnDetour; // Keep it referenced so that pfnDetour doesn't become invalidated. - // ReSharper disable once NotAccessedField.Local + [UsedImplicitly] private readonly T detourDelegate; private readonly nint pfnThunk;