1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-28 04:28:01 +02:00

DeleteDictionaryAndKeysAndItems to DeleteDictionaryAndKeysAndValues

This commit is contained in:
Brian Fiete 2021-01-04 04:56:44 -08:00
parent d78cb3182a
commit f9b9b15214
15 changed files with 38 additions and 23 deletions

View file

@ -53,8 +53,8 @@ namespace Beefy.gfx
[CallingConvention(.Stdcall), CLink]
static extern int32 FTFont_GetKerning(FTFont* font, int32 char8CodeA, int32 char8CodeB);
static Dictionary<String, String> sFontNameMap ~ DeleteDictionaryAndKeysAndItems!(_);
static Dictionary<String, String> sFontFailMap ~ DeleteDictionaryAndKeysAndItems!(_);
static Dictionary<String, String> sFontNameMap ~ DeleteDictionaryAndKeysAndValues!(_);
static Dictionary<String, String> sFontFailMap ~ DeleteDictionaryAndKeysAndValues!(_);
static Monitor sMonitor = new .() ~ delete _;
struct FTFont
@ -201,7 +201,7 @@ namespace Beefy.gfx
{
using (sMonitor.Enter())
{
DeleteDictionaryAndKeysAndItems!(sFontNameMap);
DeleteDictionaryAndKeysAndValues!(sFontNameMap);
sFontNameMap = null;
}
}