Browse Source

Reuse comparable swap

pull/326/head
James Jackson-South 9 years ago
parent
commit
19b45049f4
  1. 6
      src/ImageSharp/Image/ImageFrame{TPixel}.cs

6
src/ImageSharp/Image/ImageFrame{TPixel}.cs

@ -166,11 +166,7 @@ namespace SixLabors.ImageSharp
{
Guard.NotNull(pixelSource, nameof(pixelSource));
Buffer2D<TPixel> newPixels = pixelSource.pixelBuffer;
pixelSource.pixelBuffer = this.pixelBuffer;
this.pixelBuffer = newPixels;
ComparableExtensions.Swap(ref this.pixelBuffer, ref pixelSource.pixelBuffer);
}
/// <summary>

Loading…
Cancel
Save