Fix Coverity and compil warnings.
This commit is contained in:
parent
90238dede8
commit
248181e62d
|
@ -32,6 +32,7 @@ public:
|
|||
m_filename(),
|
||||
m_outputFile()
|
||||
{
|
||||
format = FORMAT::KICADSEXPR;
|
||||
}
|
||||
|
||||
wxString m_filename;
|
||||
|
|
|
@ -403,14 +403,14 @@ int PCBNEW_JOBS_HANDLER::JobExportPos( JOB* aJob )
|
|||
aPosJob->m_outputFile = fn.GetFullName();
|
||||
}
|
||||
|
||||
if( aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::ASCII || aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::CSV )
|
||||
{
|
||||
FILE* file = nullptr;
|
||||
file = wxFopen( aPosJob->m_outputFile, wxS( "wt" ) );
|
||||
|
||||
if( file == nullptr )
|
||||
return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT;
|
||||
|
||||
if( aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::ASCII || aPosJob->m_format == JOB_EXPORT_PCB_POS::FORMAT::CSV )
|
||||
{
|
||||
std::string data;
|
||||
|
||||
bool frontSide = aPosJob->m_side == JOB_EXPORT_PCB_POS::SIDE::FRONT
|
||||
|
|
|
@ -1006,7 +1006,6 @@ void PCB_POINT_EDITOR::editArcMidKeepCenter( PCB_SHAPE* aArc, const VECTOR2I& aC
|
|||
int minRadius = EDA_UNIT_UTILS::Mils2IU( pcbIUScale, 1 );
|
||||
|
||||
SEG chord( aStart, aEnd );
|
||||
int newSide = chord.Side( aMid );
|
||||
|
||||
// Now, update the edit point position
|
||||
// Express the point in a circle-centered coordinate system.
|
||||
|
|
Loading…
Reference in New Issue