diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-08-24 15:39:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-08-24 15:39:21 +0200 |
commit | 7e415c83596c4bb68b527213a353454e35ca4221 (patch) | |
tree | d211cd760dad79c26bb124b7c22c2b453a5bd5e1 /vcl/opengl/FixedTextureAtlas.cxx | |
parent | 48a047f2f4e7b4b3bed33a99d37fd48025381646 (diff) |
-Werror,-Wpessimizing-move ("moving a temporary object prevents copy elision")
Change-Id: I9e5b74e5ff0348f0880972a82726178354ab7d0f
Diffstat (limited to 'vcl/opengl/FixedTextureAtlas.cxx')
-rw-r--r-- | vcl/opengl/FixedTextureAtlas.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/FixedTextureAtlas.cxx b/vcl/opengl/FixedTextureAtlas.cxx index c8ca50846b9d..f6e400597342 100644 --- a/vcl/opengl/FixedTextureAtlas.cxx +++ b/vcl/opengl/FixedTextureAtlas.cxx @@ -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); } |