Commit 6e8a8a6b authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Fix some coverity warnings (mainly not initialized members)

parent 35c23f31
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -36,6 +36,10 @@ using namespace KIGFX;
CAIRO_COMPOSITOR::CAIRO_COMPOSITOR( cairo_t** aMainContext ) :
    m_current( 0 ), m_currentContext( aMainContext ), m_mainContext( *aMainContext )
{
    // Do not have uninitialized members:
    cairo_matrix_init_identity( &m_matrix );
    m_stride = 0;
    m_bufferSize = 0;
}


+2 −0
Original line number Diff line number Diff line
@@ -48,8 +48,10 @@ GAL::GAL() :
    SetWorldUnitLength( 1.0 / METRIC_UNIT_LENGTH * 2.54 );   // 1 inch in nanometers
    SetScreenDPI( 106 );                                     // Display resolution setting
    SetDepthRange( VECTOR2D( GAL::MIN_DEPTH, GAL::MAX_DEPTH ) );
    SetLayerDepth( 0.0 );
    SetFlip( false, false );
    SetLineWidth( 1.0 );
    ComputeWorldScale();

    // Set grid defaults
    SetGridVisibility( true );
+5 −0
Original line number Diff line number Diff line
@@ -47,6 +47,11 @@ CACHED_CONTAINER::CACHED_CONTAINER( unsigned int aSize ) :
{
    // In the beginning there is only free space
    m_freeChunks.insert( CHUNK( aSize, 0 ) );

    // Do not have uninitialized members:
    m_chunkSize = 0;
    m_chunkOffset = 0;
    m_itemSize = 0;
}


+3 −0
Original line number Diff line number Diff line
@@ -45,7 +45,10 @@ SHADER::SHADER() :
    maximumVertices( 4 ),
    geomInputType( GL_LINES ),
    geomOutputType( GL_LINES )

{
    // Do not have uninitialized members:
    programNumber = 0;
}


+1 −0
Original line number Diff line number Diff line
@@ -164,6 +164,7 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB(
{
    m_parent   = aParent;
    m_libEntry = aLibEntry;
    m_skipCopyFromPanel = false;

    GetSizer()->SetSizeHints( this );
    Centre();
Loading