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

@@ -146,7 +146,7 @@ namespace GameRes.Formats.KiriKiri
header_stream = ZLibCompressor.DeCompress (input);
}
var crypt_algorithm = new Lazy<ICrypt> (QueryCryptAlgorithm);
var crypt_algorithm = new Lazy<ICrypt> (QueryCryptAlgorithm, false);
var filename_map = new Dictionary<uint, string>();
var dir = new List<Entry>();

View File

@@ -127,7 +127,7 @@ namespace GameRes.Formats.Tactics
m_packed_size = m_file.View.ReadUInt32 (0x10);
m_unpacked_size = m_file.View.ReadUInt32 (0x14);
m_count = m_file.View.ReadInt32 (0x18);
m_dir = new Lazy<List<Entry>> (() => new List<Entry> (m_count));
m_dir = new Lazy<List<Entry>> (() => new List<Entry> (m_count), false);
}
public List<Entry> ReadIndex ()