Very minor changes. ( changes in clipper are made to avoid coverity minor warnings).

This commit is contained in:
jean-pierre charras 2015-08-25 16:47:09 +02:00
parent 0aa9fad668
commit f67c7fe052
2 changed files with 8 additions and 3 deletions

View File

@ -980,14 +980,13 @@ void PCB_EDIT_FRAME::ScriptingConsoleEnableDisable( wxCommandEvent& aEvent )
{ {
wxWindow * pythonPanelFrame = findPythonConsole(); wxWindow * pythonPanelFrame = findPythonConsole();
bool pythonPanelShown = false; bool pythonPanelShown = true;
if( pythonPanelFrame == NULL ) if( pythonPanelFrame == NULL )
pythonPanelFrame = new PYTHON_CONSOLE_FRAME( this, pythonConsoleNameId() ); pythonPanelFrame = new PYTHON_CONSOLE_FRAME( this, pythonConsoleNameId() );
else else
pythonPanelShown = pythonPanelFrame->IsShown(); pythonPanelShown = ! pythonPanelFrame->IsShown();
pythonPanelShown = ! pythonPanelShown;
pythonPanelFrame->Show( pythonPanelShown ); pythonPanelFrame->Show( pythonPanelShown );
} }

View File

@ -879,6 +879,9 @@ ClipperBase::ClipperBase() //constructor
{ {
m_CurrentLM = m_MinimaList.begin(); //begin() == end() here m_CurrentLM = m_MinimaList.begin(); //begin() == end() here
m_UseFullRange = false; m_UseFullRange = false;
//Clear vars to make coverity happy:
m_PreserveCollinear = m_HasOpenPaths = false;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -3624,6 +3627,9 @@ ClipperOffset::ClipperOffset(double miterLimit, double arcTolerance)
this->MiterLimit = miterLimit; this->MiterLimit = miterLimit;
this->ArcTolerance = arcTolerance; this->ArcTolerance = arcTolerance;
m_lowest.X = -1; m_lowest.X = -1;
//Clear temp vars to make coverity happy.
m_delta = m_sinA = m_sin = m_cos = m_miterLim = m_StepsPerRad = 0.0;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------