Coverity Scan warnings.
--HG-- branch : develop
This commit is contained in:
parent
d8dfa651ff
commit
5d12cf5e99
|
@ -365,7 +365,8 @@ QVector<QPointF> VEquidistant::EkvPoint(const QLineF &line1, const QLineF &line2
|
|||
QVector<QPointF> points;
|
||||
if (line1.p2() != line2.p2())
|
||||
{
|
||||
qDebug()<<"Last point of two lines must be equal.";
|
||||
qDebug()<<"Last points of two lines must be equal.";
|
||||
return QVector<QPointF>();
|
||||
}
|
||||
QPointF CrosPoint;
|
||||
QLineF bigLine1 = ParallelLine(line1, width );
|
||||
|
@ -390,11 +391,19 @@ QVector<QPointF> VEquidistant::EkvPoint(const QLineF &line1, const QLineF &line2
|
|||
// We do not check intersection type because intersection must alwayse exist
|
||||
QPointF px;
|
||||
cutLine.setAngle(cutLine.angle()+90);
|
||||
bigLine1.intersect( cutLine, &px );
|
||||
QLineF::IntersectType type = bigLine1.intersect( cutLine, &px );
|
||||
if (type == QLineF::NoIntersection)
|
||||
{
|
||||
qDebug()<<"Couldn't find intersection with cut line.";
|
||||
}
|
||||
points.append(px);
|
||||
|
||||
cutLine.setAngle(cutLine.angle()-180);
|
||||
bigLine2.intersect( cutLine, &px );
|
||||
type = bigLine2.intersect( cutLine, &px );
|
||||
if (type == QLineF::NoIntersection)
|
||||
{
|
||||
qDebug()<<"Couldn't find intersection with cut line.";
|
||||
}
|
||||
points.append(px);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
#include <QString>
|
||||
#include <QtGlobal>
|
||||
#include <QSharedDataPointer>
|
||||
#include <QVector>
|
||||
|
||||
class VGObjectData;
|
||||
class QLineF;
|
||||
|
|
|
@ -444,7 +444,16 @@ void VPattern::setCurrentData()
|
|||
}
|
||||
if (tools.size() > 0)
|
||||
{
|
||||
ToolExists(id);
|
||||
try
|
||||
{
|
||||
ToolExists(id);
|
||||
}
|
||||
catch (VExceptionBadId &e)
|
||||
{
|
||||
qCDebug(vXML)<<"List of tools doesn't containe id="<<id;
|
||||
return;
|
||||
}
|
||||
|
||||
const VDataTool *vTool = tools.value(id);
|
||||
*data = vTool->getData();
|
||||
qCDebug(vXML)<<"Data successfully updated.";
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <QException>
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
#include "ifcdef.h"
|
||||
|
||||
class QWidget;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "qmuparsererror.h"
|
||||
|
||||
#include <QTextStream>
|
||||
#include <QDebug>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <assert.h>
|
||||
|
|
|
@ -1001,6 +1001,8 @@ delaunay2d_t* delaunay2d_from(del_point2d_t *points, unsigned int num_points) {
|
|||
unsigned int i;
|
||||
unsigned int* faces = NULL;
|
||||
|
||||
del.num_faces = 0; //Warning using uninitialized value
|
||||
|
||||
#if PREDICATE == EXACT_PREDICATE
|
||||
exactinit();
|
||||
#endif
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -47,7 +47,13 @@ static inline QPaintEngine::PaintEngineFeatures svgEngineFeatures()
|
|||
VObjEngine::VObjEngine()
|
||||
:QPaintEngine(svgEngineFeatures()), stream(nullptr), globalPointsCount(0), outputDevice(nullptr), planeCount(0),
|
||||
size(), resolution(96), matrix()
|
||||
{}
|
||||
{
|
||||
for(int i=0; i < MAX_POINTS; i++)
|
||||
{
|
||||
points[i].x = 0;
|
||||
points[i].y = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VObjEngine::~VObjEngine()
|
||||
|
|
Loading…
Reference in New Issue
Block a user