From 93a17007e6bff939d340df4a726d5b39f1aaeb6b Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sat, 29 Oct 2022 11:43:42 +1000 Subject: [PATCH] Use new not shared options. --- src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs | 2 +- src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs | 2 +- .../TestUtilities/Tests/TestImageProviderTests.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs b/src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs index bfe7f6ca2c..b3387ce808 100644 --- a/src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs +++ b/src/ImageSharp/Formats/Bmp/BmpDecoderOptions.cs @@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Formats.Bmp; public sealed class BmpDecoderOptions : ISpecializedDecoderOptions { /// - public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; + public DecoderOptions GeneralOptions { get; init; } = new(); /// /// Gets the value indicating how to deal with skipped pixels, diff --git a/src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs b/src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs index 633b9f80b8..78ee317419 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegDecoderOptions.cs @@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg; public sealed class JpegDecoderOptions : ISpecializedDecoderOptions { /// - public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; + public DecoderOptions GeneralOptions { get; init; } = new(); /// /// Gets the resize mode. diff --git a/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs b/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs index 99bba9e816..96b62d8284 100644 --- a/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs +++ b/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs @@ -429,7 +429,7 @@ public class TestImageProviderTests private class TestDecoderOptions : ISpecializedDecoderOptions { - public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; + public DecoderOptions GeneralOptions { get; init; } = new(); } private class TestDecoderWithParametersOptions : ISpecializedDecoderOptions @@ -438,6 +438,6 @@ public class TestImageProviderTests public int Param2 { get; init; } - public DecoderOptions GeneralOptions { get; init; } = DecoderOptions.Default; + public DecoderOptions GeneralOptions { get; init; } = new(); } }