From 853b1173697c0f56084eea21fd7d04f40764fa96 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Mon, 1 Nov 2021 19:46:24 +0100 Subject: [PATCH] Make histo and best histo array readonly --- src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs b/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs index 6a0a3184ed..da815a479a 100644 --- a/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs +++ b/src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs @@ -24,9 +24,9 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless /// private readonly int[] scratch = new int[256]; - private int[][] histoArgb = { new int[256], new int[256], new int[256], new int[256] }; + private readonly int[][] histoArgb = { new int[256], new int[256], new int[256], new int[256] }; - private int[][] bestHisto = { new int[256], new int[256], new int[256], new int[256] }; + private readonly int[][] bestHisto = { new int[256], new int[256], new int[256], new int[256] }; /// /// The to use for buffer allocations.