diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-06 14:16:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-06 14:27:11 +0100 |
commit | cab3468e96552348ae46121a490f1f6160b65213 (patch) | |
tree | 4f882a6c80d7d034100b84aa12be667e1d6dc46e /vcl | |
parent | 5471a5585cba925bb0dcb2dc41e03ad563998166 (diff) |
use member initialization list
Change-Id: Iedfc255306428a4354bb73a67da4f93c714e7817
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/texture.cxx | 7 |
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); } |