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

Caolán McNamara caolanm at redhat.com
Tue Jun 6 13:27:49 UTC 2017


 vcl/opengl/texture.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit cab3468e96552348ae46121a490f1f6160b65213
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jun 6 14:16:33 2017 +0100

    use member initialization list
    
    Change-Id: Iedfc255306428a4354bb73a67da4f93c714e7817

diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index 21c35518dae7..207190e8ba8c 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -285,11 +285,10 @@ OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, v
 }
 
 OpenGLTexture::OpenGLTexture( const OpenGLTexture& rTexture )
+    : maRect(rTexture.maRect)
+    , mpImpl(rTexture.mpImpl)
+    , mnSlotNumber(rTexture.mnSlotNumber)
 {
-    maRect = rTexture.maRect;
-    mpImpl = rTexture.mpImpl;
-    mnSlotNumber = rTexture.mnSlotNumber;
-
     if (mpImpl)
         mpImpl->IncreaseRefCount(mnSlotNumber);
 }


More information about the Libreoffice-commits mailing list