Warning. Initialize member in an initialization list.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-02-22 12:22:04 +02:00
parent 2d24964c68
commit a0380f4d24
2 changed files with 3 additions and 7 deletions

View File

@ -60,8 +60,7 @@ public:
if (VFuzzyComparePossibleNulls(angle1, angle2) || not qFuzzyCompare(qAbs(angle1-angle2), 180) ) if (VFuzzyComparePossibleNulls(angle1, angle2) || not qFuzzyCompare(qAbs(angle1-angle2), 180) )
{ {
qDebug()<<"Make angle1 and angle2 correct."; qDebug()<<"Make angle1 and angle2 correct.";
this->angle1 = angle1; this->angle2 = this->angle1 + 180;
this->angle2 = angle1 + 180;
} }
} }

View File

@ -74,12 +74,9 @@ VToolBisector::VToolBisector(VAbstractPattern *doc, VContainer *data, const quin
const QString &lineColor, const QString &formula, const quint32 &firstPointId, const QString &lineColor, const QString &formula, const quint32 &firstPointId,
const quint32 &secondPointId, const quint32 &thirdPointId, const Source &typeCreation, const quint32 &secondPointId, const quint32 &thirdPointId, const Source &typeCreation,
QGraphicsItem *parent) QGraphicsItem *parent)
:VToolLinePoint(doc, data, id, typeLine, lineColor, formula, secondPointId, 0, parent), firstPointId(NULL_ID), :VToolLinePoint(doc, data, id, typeLine, lineColor, formula, secondPointId, 0, parent), firstPointId(firstPointId),
thirdPointId(NULL_ID) thirdPointId(thirdPointId)
{ {
this->firstPointId = firstPointId;
this->thirdPointId = thirdPointId;
ToolCreation(typeCreation); ToolCreation(typeCreation);
} }