Commit d1d1e2b5 authored by Wayne Stambaugh's avatar Wayne Stambaugh
Browse files

Lots of Coverity scan error fixes.

parent bd5d4682
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
/*
/*
 * This program source code file is part of KiCad, a free EDA CAD application.
 * This program source code file is part of KiCad, a free EDA CAD application.
 *
 *
 * Copyright (C) 1992-2012 KiCad Developers, see AUTHORS.txt for contributors.
 * Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
 *
 *
 * This program is free software; you can redistribute it and/or
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * modify it under the terms of the GNU General Public License
@@ -83,6 +83,8 @@ S3D_MASTER::S3D_MASTER( EDA_ITEM* aParent ) :
    m_use_modelfile_ambientIntensity = true;
    m_use_modelfile_ambientIntensity = true;
    m_use_modelfile_transparency = true;
    m_use_modelfile_transparency = true;
    m_use_modelfile_shininess = true;
    m_use_modelfile_shininess = true;
    m_loadTransparentObjects = true;
    m_loadNonTransparentObjects = true;
}
}




+4 −0
Original line number Original line Diff line number Diff line
@@ -53,6 +53,10 @@ VRML2_MODEL_PARSER::VRML2_MODEL_PARSER( S3D_MASTER* aMaster ) :
    S3D_MODEL_PARSER( aMaster )
    S3D_MODEL_PARSER( aMaster )
{
{
    m_model = NULL;
    m_model = NULL;
    m_file = NULL;
    m_Materials = NULL;
    m_normalPerVertex = true;
    colorPerVertex = true;
}
}




+2 −0
Original line number Original line Diff line number Diff line
@@ -81,6 +81,8 @@ LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR( wxWindow* parent, wxWindowID id,
{
{
    if( choices != NULL )
    if( choices != NULL )
        ResyncBitmapOnly();
        ResyncBitmapOnly();

    m_hotkeys = NULL;
}
}




+1 −1
Original line number Original line Diff line number Diff line
@@ -379,7 +379,7 @@ void FP_LIB_TABLE::Parse( FP_LIB_TABLE_LEXER* in ) throw( IO_ERROR, PARSE_ERROR




void FP_LIB_TABLE::Format( OUTPUTFORMATTER* out, int nestLevel ) const
void FP_LIB_TABLE::Format( OUTPUTFORMATTER* out, int nestLevel ) const
    throw( IO_ERROR )
    throw( IO_ERROR, boost::interprocess::lock_exception )
{
{
    out->Print( nestLevel, "(fp_lib_table\n" );
    out->Print( nestLevel, "(fp_lib_table\n" );


+1 −1
Original line number Original line Diff line number Diff line
@@ -1050,7 +1050,7 @@ const wxString PART_LIBS::CacheName( const wxString& aFullProjectFilename )
}
}




void PART_LIBS::LoadAllLibraries( PROJECT* aProject ) throw( IO_ERROR )
void PART_LIBS::LoadAllLibraries( PROJECT* aProject ) throw( IO_ERROR, boost::bad_pointer )
{
{
    wxFileName      fn;
    wxFileName      fn;
    wxString        filename;
    wxString        filename;
Loading