use emplace_back instead of push_back where justified

This commit is contained in:
asapelkin
2019-10-25 00:57:12 +03:00
committed by wmayer
parent 079808b816
commit e951094af9
67 changed files with 239 additions and 241 deletions

View File

@@ -583,13 +583,13 @@ void NaviCubeImplementation::addFace(const Vector3f& x, const Vector3f& z, int f
int t = m_VertexArray.size();
m_VertexArray.push_back(z - x - y);
m_TextureCoordArray.push_back(Vector2f(0, 0));
m_TextureCoordArray.emplace_back(0, 0);
m_VertexArray.push_back(z + x - y);
m_TextureCoordArray.push_back(Vector2f(1, 0));
m_TextureCoordArray.emplace_back(1, 0);
m_VertexArray.push_back(z + x + y);
m_TextureCoordArray.push_back(Vector2f(1, 1));
m_TextureCoordArray.emplace_back(1, 1);
m_VertexArray.push_back(z - x + y);
m_TextureCoordArray.push_back(Vector2f(0, 1));
m_TextureCoordArray.emplace_back(0, 1);
// TEX_TOP, TEX_BACK_FACE, TEX_FRONT_FACE, TEX_TOP
// TEX_TOP frontTex,