Cppcheck warning.
--HG-- branch : feature
This commit is contained in:
parent
ff2d9c28fe
commit
18bbca7b9a
|
@ -33,12 +33,13 @@
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
VisToolPin::VisToolPin(const VContainer *data, QGraphicsItem *parent)
|
VisToolPin::VisToolPin(const VContainer *data, QGraphicsItem *parent)
|
||||||
: VisLine(data, parent),
|
: VisLine(data, parent),
|
||||||
m_point(nullptr)
|
m_point()
|
||||||
{
|
{
|
||||||
this->mainColor = Qt::red;
|
this->mainColor = Qt::red;
|
||||||
this->setZValue(2);// Show on top real tool
|
this->setZValue(2);// Show on top real tool
|
||||||
|
|
||||||
m_point = new VSimplePoint(NULL_ID, mainColor, *Visualization::data->GetPatternUnit(), &factor);
|
m_point = QSharedPointer<VSimplePoint>(new VSimplePoint(NULL_ID, mainColor, *Visualization::data->GetPatternUnit(),
|
||||||
|
&factor));
|
||||||
m_point->SetPointHighlight(true);
|
m_point->SetPointHighlight(true);
|
||||||
m_point->setParentItem(this);
|
m_point->setParentItem(this);
|
||||||
m_point->SetVisualizationMode(true);
|
m_point->SetVisualizationMode(true);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
enum { Type = UserType + static_cast<int>(Vis::ToolPin)};
|
enum { Type = UserType + static_cast<int>(Vis::ToolPin)};
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VisToolPin)
|
Q_DISABLE_COPY(VisToolPin)
|
||||||
VSimplePoint *m_point;
|
QSharedPointer<VSimplePoint> m_point;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VISTOOLPIN_H
|
#endif // VISTOOLPIN_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user