[Libreoffice-commits] core.git: vcl/opengl

Stephan Bergmann sbergman at redhat.com
Mon Aug 24 06:39:46 PDT 2015


 vcl/opengl/FixedTextureAtlas.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7e415c83596c4bb68b527213a353454e35ca4221
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Aug 24 15:39:21 2015 +0200

    -Werror,-Wpessimizing-move ("moving a temporary object prevents copy elision")
    
    Change-Id: I9e5b74e5ff0348f0880972a82726178354ab7d0f

diff --git a/vcl/opengl/FixedTextureAtlas.cxx b/vcl/opengl/FixedTextureAtlas.cxx
index c8ca508..f6e4005 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);
 }
 


More information about the Libreoffice-commits mailing list