From 20880268bf9500c234c7175cc7bf64f685b87c93 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 25 Nov 2020 21:01:27 +0100 Subject: [PATCH] fix a few Coverity warnings --- thirdparty/dxflib_qcad/dl_dxf.cpp | 2 +- thirdparty/dxflib_qcad/dl_entities.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/thirdparty/dxflib_qcad/dl_dxf.cpp b/thirdparty/dxflib_qcad/dl_dxf.cpp index 3eeab7ccb5..675c735921 100644 --- a/thirdparty/dxflib_qcad/dl_dxf.cpp +++ b/thirdparty/dxflib_qcad/dl_dxf.cpp @@ -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) diff --git a/thirdparty/dxflib_qcad/dl_entities.h b/thirdparty/dxflib_qcad/dl_entities.h index f8b558ae9b..4c08f57a56 100644 --- a/thirdparty/dxflib_qcad/dl_entities.h +++ b/thirdparty/dxflib_qcad/dl_entities.h @@ -1149,7 +1149,9 @@ struct DXFLIB_EXPORT DL_DimensionData style( astyle ), angle( aangle ), linearFactor( alinearFactor ), - dimScale( adimScale ) + dimScale( adimScale ), + arrow1Flipped( false ), + arrow2Flipped(false ) { }