From 521b516bf9b688de4c080738284434370289db82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 5 Apr 2020 12:43:40 +0200 Subject: [PATCH] Mark suggested fields as readonly. --- OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs index 7d91f10959..b80b1ee89d 100644 --- a/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ViewportControllerWidget.cs @@ -86,15 +86,15 @@ namespace OpenRA.Mods.Common.Widgets { ScrollDirection.Right, new float2(1, 0) }, }; - Lazy tooltipContainer; + readonly Lazy tooltipContainer; int2? joystickScrollStart, joystickScrollEnd; int2? standardScrollStart; bool isStandardScrolling; ScrollDirection keyboardDirections; ScrollDirection edgeDirections; - World world; - WorldRenderer worldRenderer; + readonly World world; + readonly WorldRenderer worldRenderer; HotkeyReference[] saveBookmarkHotkeys; HotkeyReference[] restoreBookmarkHotkeys;