use non-threadsafe Lazy constructor where appropriate.

This commit is contained in:
morkt
2016-09-08 13:16:43 +04:00
parent 248413c3fe
commit 546b5f986f
4 changed files with 4 additions and 4 deletions

View File

@@ -157,7 +157,7 @@ namespace GameRes
uint signature = FormatCatalog.ReadSignature (file);
Lazy<string> ext = null;
if (!string.IsNullOrEmpty (filename))
ext = new Lazy<string> (() => Path.GetExtension (filename).TrimStart ('.').ToLowerInvariant());
ext = new Lazy<string> (() => Path.GetExtension (filename).TrimStart ('.').ToLowerInvariant(), false);
for (;;)
{
var range = FormatCatalog.Instance.LookupSignature<ImageFormat> (signature);