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;
|
QVector<QPointF> points;
|
||||||
if (line1.p2() != line2.p2())
|
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;
|
QPointF CrosPoint;
|
||||||
QLineF bigLine1 = ParallelLine(line1, width );
|
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
|
// We do not check intersection type because intersection must alwayse exist
|
||||||
QPointF px;
|
QPointF px;
|
||||||
cutLine.setAngle(cutLine.angle()+90);
|
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);
|
points.append(px);
|
||||||
|
|
||||||
cutLine.setAngle(cutLine.angle()-180);
|
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);
|
points.append(px);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QSharedDataPointer>
|
#include <QSharedDataPointer>
|
||||||
|
#include <QVector>
|
||||||
|
|
||||||
class VGObjectData;
|
class VGObjectData;
|
||||||
class QLineF;
|
class QLineF;
|
||||||
|
|
|
@ -444,7 +444,16 @@ void VPattern::setCurrentData()
|
||||||
}
|
}
|
||||||
if (tools.size() > 0)
|
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);
|
const VDataTool *vTool = tools.value(id);
|
||||||
*data = vTool->getData();
|
*data = vTool->getData();
|
||||||
qCDebug(vXML)<<"Data successfully updated.";
|
qCDebug(vXML)<<"Data successfully updated.";
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include <QException>
|
#include <QException>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QCoreApplication>
|
||||||
#include "ifcdef.h"
|
#include "ifcdef.h"
|
||||||
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include "qmuparsererror.h"
|
#include "qmuparsererror.h"
|
||||||
|
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
|
@ -1001,6 +1001,8 @@ delaunay2d_t* delaunay2d_from(del_point2d_t *points, unsigned int num_points) {
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
unsigned int* faces = NULL;
|
unsigned int* faces = NULL;
|
||||||
|
|
||||||
|
del.num_faces = 0; //Warning using uninitialized value
|
||||||
|
|
||||||
#if PREDICATE == EXACT_PREDICATE
|
#if PREDICATE == EXACT_PREDICATE
|
||||||
exactinit();
|
exactinit();
|
||||||
#endif
|
#endif
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -47,7 +47,13 @@ static inline QPaintEngine::PaintEngineFeatures svgEngineFeatures()
|
||||||
VObjEngine::VObjEngine()
|
VObjEngine::VObjEngine()
|
||||||
:QPaintEngine(svgEngineFeatures()), stream(nullptr), globalPointsCount(0), outputDevice(nullptr), planeCount(0),
|
:QPaintEngine(svgEngineFeatures()), stream(nullptr), globalPointsCount(0), outputDevice(nullptr), planeCount(0),
|
||||||
size(), resolution(96), matrix()
|
size(), resolution(96), matrix()
|
||||||
{}
|
{
|
||||||
|
for(int i=0; i < MAX_POINTS; i++)
|
||||||
|
{
|
||||||
|
points[i].x = 0;
|
||||||
|
points[i].y = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
VObjEngine::~VObjEngine()
|
VObjEngine::~VObjEngine()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user