Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 591d072

Browse files
committed
Minor cleanups
1 parent c998ff0 commit 591d072

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ColorSharp/src/ColorSpaces/CIEXYZ.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace ColorSpaces
3838
/**
3939
* CIE 1931 (2º) XYZ Color Space.
4040
*/
41-
public class CIEXYZ : AConvertibleColor
41+
public sealed class CIEXYZ : AConvertibleColor
4242
{
4343
#region readonly properties
4444

@@ -57,7 +57,7 @@ public CIEXYZ() {
5757
/**
5858
* This constructor "installs" the conversor methods into the instance
5959
*/
60-
protected CIEXYZ(AConvertibleColor dataSource=null) : base(dataSource) {
60+
private CIEXYZ(AConvertibleColor dataSource=null) : base(dataSource) {
6161
Conversors.Add (typeof(SRGB), ToSRGB);
6262
Conversors.Add (typeof(CIExyY), ToxyY);
6363
}

ColorSharp/src/ColorSpaces/CIExyY.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public override int GetHashCode ()
191191

192192
#endregion
193193

194+
194195
#region internal utilities
195196

196197
/**

ColorSharp/src/ColorSpaces/SRGB.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace ColorSpaces
3838
/**
3939
* HP's & Microsoft's 1996 sRGB Color Space.
4040
*/
41-
public class SRGB : AConvertibleColor
41+
public sealed class SRGB : AConvertibleColor
4242
{
4343
#region private properties
4444

@@ -52,7 +52,7 @@ public class SRGB : AConvertibleColor
5252
/**
5353
* This constructor "installs" the conversor methods into the instance
5454
*/
55-
protected SRGB(AConvertibleColor dataSource=null) : base(dataSource) {
55+
private SRGB(AConvertibleColor dataSource=null) : base(dataSource) {
5656
Conversors.Add (typeof(CIEXYZ), ToCIEXYZ);
5757
}
5858

0 commit comments

Comments
 (0)