Use emplace() instead of insert() where applicable for maps.

This commit is contained in:
Lioncash committed 2015-06-28 19:52:40 -04:00
1 parent 1120132d26
commit daa205990f
12 files changed
+41 -30

No files matched your search

@@ -258,7 +258,7 @@ ID3D11PixelShader* PSTextureEncoder::SetStaticShader(unsigned int dstFormat, PEC
dstFormat, srcFormat, isIntensity, scaleByHalf);
D3D::SetDebugObjectName(newShader, debugName);
it = m_staticShaders.insert(std::make_pair(key, newShader)).first;
it = m_staticShaders.emplace(key, newShader).first;
bytecode->Release();
}