Kaydet (Commit) 7e415c83 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wpessimizing-move ("moving a temporary object prevents copy elision")

Change-Id: I9e5b74e5ff0348f0880972a82726178354ab7d0f
üst 48a047f2
......@@ -28,7 +28,7 @@ void FixedTextureAtlasManager::CreateNewTexture()
{
int nTextureWidth = mWidthFactor * mSubTextureSize;
int nTextureHeight = mHeightFactor * mSubTextureSize;
mpTextures.push_back(std::move(std::unique_ptr<ImplOpenGLTexture>(new ImplOpenGLTexture(nTextureWidth, nTextureHeight, true))));
mpTextures.push_back(std::unique_ptr<ImplOpenGLTexture>(new ImplOpenGLTexture(nTextureWidth, nTextureHeight, true)));
mpTextures.back()->InitializeSlots(mWidthFactor * mHeightFactor);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment