Add necessary parentheses and use target-typed new() expressions
このコミットが含まれているのは:
1 親
b2afb88f30
コミット
553c7a4014
11ファイル変更
+43
-44
検索条件に一致するファイルはありません
@@ -41,5 +41,5 @@ internal readonly struct Complex64
|
||||
/// <param name="scalar">The <see cref="float"/> scalar to use to multiply the <see cref="Complex64"/> value.</param>
|
||||
/// <returns>The <see cref="Complex64"/> result.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static Complex64 operator *(Complex64 value, float scalar) => new Complex64(value.Real * scalar, value.Imaginary * scalar);
|
||||
public static Complex64 operator *(Complex64 value, float scalar) => new(value.Real * scalar, value.Imaginary * scalar);
|
||||
}
|
||||
@@ -77,7 +77,7 @@ public sealed partial class HlslBokehBlurProcessor : IImageProcessor
|
||||
ThrowHelper.ThrowInvalidOperationException("This processor only supports the RGBA32 pixel format.");
|
||||
}
|
||||
|
||||
Implementation processor = new Implementation(this, configuration, Unsafe.As<Image<ImageSharpRgba32>>(source), sourceRectangle);
|
||||
Implementation processor = new(this, configuration, Unsafe.As<Image<ImageSharpRgba32>>(source), sourceRectangle);
|
||||
|
||||
return Unsafe.As<IImageProcessor<TPixel>>(processor);
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ public sealed partial class HlslGaussianBlurProcessor : IImageProcessor
|
||||
ThrowHelper.ThrowInvalidOperationException("This processor only supports the RGBA32 pixel format.");
|
||||
}
|
||||
|
||||
Implementation processor = new Implementation(this, configuration, Unsafe.As<Image<ImageSharpRgba32>>(source), sourceRectangle);
|
||||
Implementation processor = new(this, configuration, Unsafe.As<Image<ImageSharpRgba32>>(source), sourceRectangle);
|
||||
|
||||
return Unsafe.As<IImageProcessor<TPixel>>(processor);
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする