Kaydet (Commit) 56ca092f authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

coverity#1320472 Uninitialized scalar field

Change-Id: I50e07779a541bbea6b285a855fb54d419d4aed13
(cherry picked from commit 52a52a21)
üst 630f9f48
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment