Skip to content

Commit

Permalink
set the default instance
Browse files Browse the repository at this point in the history
  • Loading branch information
amywarble committed Dec 9, 2023
1 parent 79b81d9 commit 08a9495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Material.Icons/MaterialIconDataProvider.Declaration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Material.Icons;
/// Allows retrieving data for icons
/// </summary>
public partial class MaterialIconDataProvider {
private static MaterialIconDataProvider? _instance;
private static MaterialIconDataProvider _instance = new();

/// <summary>
/// Gets or sets the singleton instance of this provider
Expand Down
2 changes: 1 addition & 1 deletion build/Generators/MaterialIconDataDeclarationGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void Write(AbsolutePath destinationPath) {
stringBuilder.AppendLine("/// Allows retrieving data for icons");
stringBuilder.AppendLine("/// </summary>");
stringBuilder.AppendLine("public partial class MaterialIconDataProvider {");
stringBuilder.AppendLine(" private static MaterialIconDataProvider? _instance;");
stringBuilder.AppendLine(" private static MaterialIconDataProvider _instance = new();");
stringBuilder.AppendLine("");
stringBuilder.AppendLine(" /// <summary>");
stringBuilder.AppendLine(" /// Gets or sets the singleton instance of this provider");
Expand Down

0 comments on commit 08a9495

Please sign in to comment.