diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-27 08:05:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-27 08:14:13 +0100 |
commit | 52a52a21c6997a6b083985fdcda540d66e86f32e (patch) | |
tree | 36aef746236ccd75ad89fb7dd25b65eb1fc5c799 /vcl/opengl | |
parent | 0d80e7d7a84654dee2d50fc3e4d931260da2b37c (diff) |
coverity#1320472 Uninitialized scalar field
Change-Id: I50e07779a541bbea6b285a855fb54d419d4aed13
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/texture.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index cbb8b076f38a..65a0b69b9748 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -169,20 +169,23 @@ OpenGLTexture::OpenGLTexture(ImplOpenGLTexture* pImpl, Rectangle aRectangle, int mpImpl->IncreaseRefCount(nSlotNumber); } -OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, bool bAllocate ) : - maRect( Point( 0, 0 ), Size( nWidth, nHeight ) ) +OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, bool bAllocate ) + : maRect( Point( 0, 0 ), Size( nWidth, nHeight ) ) + , mnSlotNumber(-1) { mpImpl = new ImplOpenGLTexture( nWidth, nHeight, bAllocate ); } -OpenGLTexture::OpenGLTexture( int nX, int nY, int nWidth, int nHeight ) : - maRect( Point( 0, 0 ), Size( nWidth, nHeight ) ) +OpenGLTexture::OpenGLTexture( int nX, int nY, int nWidth, int nHeight ) + : maRect( Point( 0, 0 ), Size( nWidth, nHeight ) ) + , mnSlotNumber(-1) { mpImpl = new ImplOpenGLTexture( nX, nY, nWidth, nHeight ); } -OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData ) : - maRect( Point( 0, 0 ), Size( nWidth, nHeight ) ) +OpenGLTexture::OpenGLTexture( int nWidth, int nHeight, int nFormat, int nType, sal_uInt8* pData ) + : maRect( Point( 0, 0 ), Size( nWidth, nHeight ) ) + , mnSlotNumber(-1) { mpImpl = new ImplOpenGLTexture( nWidth, nHeight, nFormat, nType, pData ); } |