Sealed a lot of classes that are not meant to be inherited

This commit is contained in:
DarthAffe committed 2023-04-19 21:19:05 +02:00
1 parent d9c244a044
commit 2020992249
155 files changed
+205 -344

No files matched your search

@@ -7,7 +7,7 @@ namespace RGB.NET.Devices.Novation;
/// <summary>
/// Represents the update-queue performing updates for a limited-color novation device.
/// </summary>
public class LimitedColorUpdateQueue : MidiUpdateQueue
public sealed class LimitedColorUpdateQueue : MidiUpdateQueue
{
#region Constructors
@@ -37,7 +37,7 @@ public class LimitedColorUpdateQueue : MidiUpdateQueue
/// </summary>
/// <param name="color">The <see cref="Color"/> to convert.</param>
/// <returns>The novation-representation of the <see cref="Color"/>.</returns>
protected virtual int ConvertColor(in Color color)
private static int ConvertColor(in Color color)
{
(double hue, double _, double value) = color.GetHSV();
@@ -7,7 +7,7 @@ namespace RGB.NET.Devices.Novation;
/// <summary>
/// Represents the update-queue performing updates for a RGB-color novation device.
/// </summary>
public class RGBColorUpdateQueue : MidiUpdateQueue
public sealed class RGBColorUpdateQueue : MidiUpdateQueue
{
#region Properties & Fields
@@ -165,7 +165,7 @@ public class RGBColorUpdateQueue : MidiUpdateQueue
/// </summary>
/// <param name="color">The <see cref="Color"/> to convert.</param>
/// <returns>The novation-representation of the <see cref="Color"/>.</returns>
protected virtual int ConvertColor(in Color color)
private static int ConvertColor(in Color color)
{
int bestVelocity = 0;
double bestMatchDistance = double.MaxValue;