mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-05 07:46:15 +02:00
Fix or disable multiple warnings
This commit is contained in:
@@ -6,8 +6,13 @@ namespace DesktopMagic.Api.Drawing;
|
||||
|
||||
internal class FontComparer : IEqualityComparer<Font>
|
||||
{
|
||||
public bool Equals(Font font1, Font font2)
|
||||
public bool Equals(Font? font1, Font? font2)
|
||||
{
|
||||
if (font1 is null || font2 is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (font1.Name != font2.Name)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user