vcl/opengl/texture.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
New commits: commit 4d00d0aa877a0666b06aa58460e4ea1e0369266d Author: Caolán McNamara <caol...@redhat.com> Date: Thu Aug 27 08:05:45 2015 +0100 coverity#1320472 Uninitialized scalar field Change-Id: I50e07779a541bbea6b285a855fb54d419d4aed13 (cherry picked from commit 52a52a21c6997a6b083985fdcda540d66e86f32e) diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index 6d2bbb2..6d222f7 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -168,20 +168,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 ); }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits