mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
fix a few Coverity warnings
This commit is contained in:
parent
09587ef4fb
commit
20880268bf
2
thirdparty/dxflib_qcad/dl_dxf.cpp
vendored
2
thirdparty/dxflib_qcad/dl_dxf.cpp
vendored
@ -370,7 +370,7 @@ bool DL_Dxf::getStrippedLine( std::string& s, unsigned int size,
|
||||
bool DL_Dxf::stripWhiteSpace( char** s, bool stripSpace )
|
||||
{
|
||||
// last non-NULL char:
|
||||
std::size_t lastChar = strlen( *s ) - 1;
|
||||
int lastChar = strlen( *s ) - 1;
|
||||
|
||||
// Is last character CR or LF?
|
||||
while( (lastChar >= 0)
|
||||
|
4
thirdparty/dxflib_qcad/dl_entities.h
vendored
4
thirdparty/dxflib_qcad/dl_entities.h
vendored
@ -1149,7 +1149,9 @@ struct DXFLIB_EXPORT DL_DimensionData
|
||||
style( astyle ),
|
||||
angle( aangle ),
|
||||
linearFactor( alinearFactor ),
|
||||
dimScale( adimScale )
|
||||
dimScale( adimScale ),
|
||||
arrow1Flipped( false ),
|
||||
arrow2Flipped(false )
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user