summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-06 14:16:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-06 14:27:11 +0100
commitcab3468e96552348ae46121a490f1f6160b65213 (patch)
tree4f882a6c80d7d034100b84aa12be667e1d6dc46e /vcl
parent5471a5585cba925bb0dcb2dc41e03ad563998166 (diff)
use member initialization list
Change-Id: Iedfc255306428a4354bb73a67da4f93c714e7817
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/texture.cxx7
1 files changed, 3 insertions, 4 deletions
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);
}