Fix a few Coverity warnings.
This commit is contained in:
parent
2751c67746
commit
0b03d8a5ff
|
@ -125,6 +125,18 @@ BOARD_ADAPTER::BOARD_ADAPTER() :
|
|||
|
||||
m_F_Cu_PlatedPads_poly = nullptr;
|
||||
m_B_Cu_PlatedPads_poly = nullptr;
|
||||
|
||||
// Avoid raytracing options not initialized:
|
||||
m_raytrace_nrsamples_shadows = 0;
|
||||
m_raytrace_nrsamples_reflections = 0;
|
||||
m_raytrace_nrsamples_refractions = 0;
|
||||
|
||||
m_raytrace_spread_shadows = 0.0;
|
||||
m_raytrace_spread_reflections = 0.0;
|
||||
m_raytrace_spread_refractions = 0.0;
|
||||
|
||||
m_raytrace_recursivelevel_reflections = 0;
|
||||
m_raytrace_recursivelevel_refractions = 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -137,9 +137,11 @@ public:
|
|||
{
|
||||
switch( aSeverity )
|
||||
{
|
||||
case RPT_SEVERITY_ERROR:
|
||||
case RPT_SEVERITY_ERROR:
|
||||
m_log->SetColor( CONSOLE_LOG::RED );
|
||||
m_log->Print("ERROR | ");
|
||||
break;
|
||||
|
||||
default:
|
||||
m_log->SetColor( CONSOLE_LOG::DEFAULT );
|
||||
m_log->Print(" | ");
|
||||
|
|
Loading…
Reference in New Issue