Skip to content

Commit

Permalink
Coverity fixes
Browse files Browse the repository at this point in the history
CID 156629  - obsolete
CID 156624  - obsolete
CID 163225  - won't fix
CID 163226
CID 163227
CID 163228
CID 163229
CID 163235
  • Loading branch information
WandererFan authored and wwmayer committed Jun 23, 2017
1 parent f56df2e commit 0768ae9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Mod/TechDraw/Gui/QGIFace.cpp
Expand Up @@ -228,12 +228,12 @@ void QGIFace::clearLineSets(void)
clearFillItems();
}

void QGIFace::addLineSet(LineSet ls)
void QGIFace::addLineSet(LineSet& ls)
{
m_lineSets.push_back(ls);
}

void QGIFace::lineSetToFillItems(LineSet ls)
void QGIFace::lineSetToFillItems(LineSet& ls)
{
m_segCount = 0;
QPen pen = setGeomPen();
Expand Down Expand Up @@ -285,7 +285,7 @@ QGraphicsPathItem* QGIFace::lineFromPoints(Base::Vector3d start, Base::Vector3d
return fillItem;
}

QGraphicsPathItem* QGIFace::geomToLine(TechDrawGeometry::BaseGeom* base, LineSet ls)
QGraphicsPathItem* QGIFace::geomToLine(TechDrawGeometry::BaseGeom* base, LineSet& ls)
{
QGraphicsPathItem* fillItem = new QGraphicsPathItem(this);
Base::Vector3d start(base->getStartPoint().x,
Expand All @@ -302,7 +302,7 @@ QGraphicsPathItem* QGIFace::geomToLine(TechDrawGeometry::BaseGeom* base, LineSe


//! make a fragment (length = remain) of a dashed line, with pattern starting at +offset
QGraphicsPathItem* QGIFace::geomToStubbyLine(TechDrawGeometry::BaseGeom* base, double remain, LineSet ls)
QGraphicsPathItem* QGIFace::geomToStubbyLine(TechDrawGeometry::BaseGeom* base, double remain, LineSet& ls)
{
QGraphicsPathItem* fillItem = new QGraphicsPathItem(this);
Base::Vector3d start(base->getStartPoint().x,
Expand Down
10 changes: 5 additions & 5 deletions src/Mod/TechDraw/Gui/QGIFace.h
Expand Up @@ -106,13 +106,13 @@ class QGIFace : public QGIPrimPath
void setLineWeight(double w);

void clearLineSets(void);
void addLineSet(LineSet ls);
void addLineSet(LineSet& ls);
void clearFillItems(void);

void lineSetToFillItems(LineSet ls);
QGraphicsPathItem* geomToLine(TechDrawGeometry::BaseGeom* base, LineSet ls);
QGraphicsPathItem* geomToOffsetLine(TechDrawGeometry::BaseGeom* base, double offset, LineSet ls);
QGraphicsPathItem* geomToStubbyLine(TechDrawGeometry::BaseGeom* base, double offset, LineSet ls);
void lineSetToFillItems(LineSet& ls);
QGraphicsPathItem* geomToLine(TechDrawGeometry::BaseGeom* base,LineSet& ls);
// QGraphicsPathItem* geomToOffsetLine(TechDrawGeometry::BaseGeom* base, double offset, const LineSet& ls);
QGraphicsPathItem* geomToStubbyLine(TechDrawGeometry::BaseGeom* base, double offset, LineSet& ls);
QGraphicsPathItem* lineFromPoints(Base::Vector3d start, Base::Vector3d end, DashSpec ds);

//bitmap texture fill parms method
Expand Down
1 change: 1 addition & 0 deletions src/Mod/TechDraw/Gui/QGIHighlight.cpp
Expand Up @@ -41,6 +41,7 @@ using namespace TechDrawGui;

QGIHighlight::QGIHighlight()
{
m_refSize = 0.0;
m_circle = new QGraphicsEllipseItem();
addToGroup(m_circle);
m_rect = new QGCustomRect();
Expand Down

0 comments on commit 0768ae9

Please sign in to comment.