Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/UglyToad.PdfPig/PdfFonts/Cmap/CMapUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static int ToInt(this ReadOnlySpan<byte> data)
return code;
}

public static void PutAll<TKey, TValue>(this Dictionary<TKey, TValue> target, IReadOnlyDictionary<TKey, TValue> source)
public static void PutAll<TKey, TValue>(this Dictionary<TKey, TValue> target, IReadOnlyDictionary<TKey, TValue> source) where TKey : notnull
{
foreach (var pair in source)
{
Expand Down
2 changes: 1 addition & 1 deletion src/UglyToad.PdfPig/Util/StackDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace UglyToad.PdfPig.Util
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

internal class StackDictionary<K, V>
internal class StackDictionary<K, V> where K : notnull
{
private readonly List<Dictionary<K, V>> values = new List<Dictionary<K, V>>();

Expand Down
Loading