mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Fix Coverity and compil warnings.
This commit is contained in:
parent
90238dede8
commit
248181e62d
@ -32,6 +32,7 @@ public:
|
|||||||
m_filename(),
|
m_filename(),
|
||||||
m_outputFile()
|
m_outputFile()
|
||||||
{
|
{
|
||||||
|
format = FORMAT::KICADSEXPR;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString m_filename;
|
wxString m_filename;
|
||||||
|
@ -403,14 +403,14 @@ int PCBNEW_JOBS_HANDLER::JobExportPos( JOB* aJob )
|
|||||||
aPosJob->m_outputFile = fn.GetFullName();
|
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* file = nullptr;
|
||||||
file = wxFopen( aPosJob->m_outputFile, wxS( "wt" ) );
|
file = wxFopen( aPosJob->m_outputFile, wxS( "wt" ) );
|
||||||
|
|
||||||
if( file == nullptr )
|
if( file == nullptr )
|
||||||
return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT;
|
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;
|
std::string data;
|
||||||
|
|
||||||
bool frontSide = aPosJob->m_side == JOB_EXPORT_PCB_POS::SIDE::FRONT
|
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 );
|
int minRadius = EDA_UNIT_UTILS::Mils2IU( pcbIUScale, 1 );
|
||||||
|
|
||||||
SEG chord( aStart, aEnd );
|
SEG chord( aStart, aEnd );
|
||||||
int newSide = chord.Side( aMid );
|
|
||||||
|
|
||||||
// Now, update the edit point position
|
// Now, update the edit point position
|
||||||
// Express the point in a circle-centered coordinate system.
|
// Express the point in a circle-centered coordinate system.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user