From 6b35810325da36292fb7ff19ff0ef5703502c03f Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 13 Nov 2016 16:36:21 +1100 Subject: [PATCH] Use new Swap method --- src/ImageSharp/Formats/Png/PngDecoderCore.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ImageSharp/Formats/Png/PngDecoderCore.cs b/src/ImageSharp/Formats/Png/PngDecoderCore.cs index 6f5ea55d9..f8567e45f 100644 --- a/src/ImageSharp/Formats/Png/PngDecoderCore.cs +++ b/src/ImageSharp/Formats/Png/PngDecoderCore.cs @@ -12,6 +12,8 @@ namespace ImageSharp.Formats using System.Linq; using System.Text; + using static ComparableExtensions; + /// /// Performs the png decoding operation. /// @@ -319,9 +321,7 @@ namespace ImageSharp.Formats this.ProcessDefilteredScanline(scanline, y, pixels); - byte[] temp = previousScanline; - previousScanline = scanline; - scanline = temp; + Swap(ref scanline, ref previousScanline); } } finally