mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Minor Coverity and compil warnings fixes.
This commit is contained in:
parent
c009328c07
commit
3a4f3cb0b8
@ -339,7 +339,9 @@ bool SIMULATOR_FRAME_UI::loadLegacyWorkbook( const wxString& aPath )
|
|||||||
if( version >= 5 )
|
if( version >= 5 )
|
||||||
{
|
{
|
||||||
simTab = dynamic_cast<SIM_TAB*>( m_plotNotebook->GetPage( 0 ) );
|
simTab = dynamic_cast<SIM_TAB*>( m_plotNotebook->GetPage( 0 ) );
|
||||||
simTab->SetLastSchTextSimCommand( file.GetNextLine() );
|
|
||||||
|
if( simTab )
|
||||||
|
simTab->SetLastSchTextSimCommand( file.GetNextLine() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1970,16 +1970,16 @@ bool SIMULATOR_FRAME_UI::SaveWorkbook( const wxString& aPath )
|
|||||||
|
|
||||||
int options = simTab->GetSimOptions();
|
int options = simTab->GetSimOptions();
|
||||||
|
|
||||||
if( simTab->GetSimOptions() & NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS )
|
if( options & NETLIST_EXPORTER_SPICE::OPTION_ADJUST_INCLUDE_PATHS )
|
||||||
commands_js.push_back( ".kicad adjustpaths" );
|
commands_js.push_back( ".kicad adjustpaths" );
|
||||||
|
|
||||||
if( simTab->GetSimOptions() & NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES )
|
if( options & NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_VOLTAGES )
|
||||||
commands_js.push_back( ".save all" );
|
commands_js.push_back( ".save all" );
|
||||||
|
|
||||||
if( simTab->GetSimOptions() & NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS )
|
if( options & NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_CURRENTS )
|
||||||
commands_js.push_back( ".probe alli" );
|
commands_js.push_back( ".probe alli" );
|
||||||
|
|
||||||
if( simTab->GetSimOptions() & NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS )
|
if( options & NETLIST_EXPORTER_SPICE::OPTION_SAVE_ALL_DISSIPATIONS )
|
||||||
commands_js.push_back( ".probe allp" );
|
commands_js.push_back( ".probe allp" );
|
||||||
|
|
||||||
nlohmann::json tab_js = nlohmann::json(
|
nlohmann::json tab_js = nlohmann::json(
|
||||||
|
@ -38,7 +38,8 @@ struct HOTKEY
|
|||||||
int m_EditKeycodeAlt;
|
int m_EditKeycodeAlt;
|
||||||
|
|
||||||
HOTKEY() :
|
HOTKEY() :
|
||||||
m_EditKeycode( 0 )
|
m_EditKeycode( 0 ),
|
||||||
|
m_EditKeycodeAlt( 0 )
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
HOTKEY( TOOL_ACTION* aAction ) :
|
HOTKEY( TOOL_ACTION* aAction ) :
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
|
|
||||||
// Note: the board's bottom side is at Z = 0
|
// Note: the board's bottom side is at Z = 0
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user