Various Coverity fixes
This commit is contained in:
parent
dc542be91d
commit
6bd3b0afa4
|
@ -44,6 +44,7 @@ void RAY::Init( const SFVEC3F& o, const SFVEC3F& d )
|
|||
m_Dir = d;
|
||||
m_InvDir = 1.0f / d;
|
||||
|
||||
rayID = 0; // Not used, just set to 0
|
||||
//rayID = gs_next_rayID;
|
||||
//gs_next_rayID++;
|
||||
|
||||
|
|
|
@ -29,11 +29,13 @@
|
|||
///! Update the schema version whenever a migration is required
|
||||
const int cvpcbSchemaVersion = 0;
|
||||
|
||||
CVPCB_SETTINGS::CVPCB_SETTINGS()
|
||||
: APP_SETTINGS_BASE( "cvpcb", cvpcbSchemaVersion ),
|
||||
m_FootprintViewerAutoZoom( false ),
|
||||
m_FootprintViewerZoom( 1.0 ),
|
||||
m_FilterFootprint( 0 )
|
||||
CVPCB_SETTINGS::CVPCB_SETTINGS() :
|
||||
APP_SETTINGS_BASE( "cvpcb", cvpcbSchemaVersion ),
|
||||
m_FootprintViewerAutoZoom( false ),
|
||||
m_FootprintViewerZoom( 1.0 ),
|
||||
m_FilterFootprint( 0 ),
|
||||
m_LibrariesWidth( 0 ),
|
||||
m_FootprintsWidth( 0 )
|
||||
{
|
||||
// We always snap and don't let the user configure it
|
||||
m_FootprintViewerMagneticSettings.pads = MAGNETIC_OPTIONS::CAPTURE_ALWAYS;
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
SCH_CONNECTION::SCH_CONNECTION( SCH_ITEM* aParent, SCH_SHEET_PATH aPath ) :
|
||||
m_sheet( aPath ),
|
||||
m_parent( aParent ),
|
||||
m_driver( nullptr ),
|
||||
m_graph( nullptr )
|
||||
{
|
||||
Reset();
|
||||
|
@ -71,6 +72,7 @@ SCH_CONNECTION::SCH_CONNECTION( SCH_ITEM* aParent, SCH_SHEET_PATH aPath ) :
|
|||
SCH_CONNECTION::SCH_CONNECTION( CONNECTION_GRAPH* aGraph ) :
|
||||
m_sheet( SCH_SHEET_PATH() ),
|
||||
m_parent( nullptr ),
|
||||
m_driver( nullptr ),
|
||||
m_graph( aGraph )
|
||||
{
|
||||
Reset();
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
|
||||
void CADSTAR_SCH_ARCHIVE_LOADER::Load( ::SCHEMATIC* aSchematic, ::SCH_SHEET* aRootSheet,
|
||||
SCH_PLUGIN::SCH_PLUGIN_RELEASER* aSchPlugin, wxFileName aLibraryFileName )
|
||||
SCH_PLUGIN::SCH_PLUGIN_RELEASER* aSchPlugin, const wxFileName& aLibraryFileName )
|
||||
{
|
||||
Parse();
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
* @param aRootSheet Root sheet to add the design onto
|
||||
*/
|
||||
void Load( ::SCHEMATIC* aSchematic, ::SCH_SHEET* aRootSheet,
|
||||
SCH_PLUGIN::SCH_PLUGIN_RELEASER* aSchPlugin, wxFileName aLibraryFileName );
|
||||
SCH_PLUGIN::SCH_PLUGIN_RELEASER* aSchPlugin, const wxFileName& aLibraryFileName );
|
||||
|
||||
|
||||
private:
|
||||
|
|
|
@ -317,7 +317,8 @@ EDA_3D_VIEWER::EDA_3D_VIEWER( KIWAY *aKiway, PCB_BASE_FRAME *aParent, const wxSt
|
|||
m_mainToolBar( nullptr ),
|
||||
m_canvas( nullptr ),
|
||||
m_currentCamera( m_trackBallCamera ),
|
||||
m_trackBallCamera( RANGE_SCALE_3D )
|
||||
m_trackBallCamera( RANGE_SCALE_3D ),
|
||||
m_disable_ray_tracing( true )
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue