From cab3468e96552348ae46121a490f1f6160b65213 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 6 Jun 2017 14:16:33 +0100 Subject: use member initialization list Change-Id: Iedfc255306428a4354bb73a67da4f93c714e7817 --- vcl/opengl/texture.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'vcl/opengl') 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); } -- cgit