Coverity warnings.

--HG--
branch : develop
This commit is contained in:
dismine 2014-09-13 23:42:58 +03:00
parent 14423990dc
commit 2940c131bc
4 changed files with 14 additions and 6 deletions

View File

@ -74,8 +74,6 @@ inline VContainer VDataTool::getData() const
*/ */
inline void VDataTool::setData(const VContainer *value) inline void VDataTool::setData(const VContainer *value)
{ {
data.ClearVariables();
data.ClearGObjects();
data = *value; data = *value;
} }

View File

@ -184,6 +184,9 @@ void VToolUnionDetails::AddToNewDetail(QObject *tool, VPattern *doc, VContainer
spl1->setMode(Draw::Modeling); spl1->setMode(Draw::Modeling);
id = data->AddGObject(spl1); id = data->AddGObject(spl1);
VNodeSpline::Create(doc, data, id, idObject, Document::FullParse, Source::FromGui, idTool, tool); VNodeSpline::Create(doc, data, id, idObject, Document::FullParse, Source::FromGui, idTool, tool);
delete p4;
delete p1;
} }
} }
break; break;
@ -231,8 +234,10 @@ void VToolUnionDetails::AddToNewDetail(QObject *tool, VPattern *doc, VContainer
path->append(VSplinePoint(*p1, splinePath->at(i-1).KAsm1(), spl.GetAngle1()+180, path->append(VSplinePoint(*p1, splinePath->at(i-1).KAsm1(), spl.GetAngle1()+180,
splinePath->at(i-1).KAsm2(), spl.GetAngle1())); splinePath->at(i-1).KAsm2(), spl.GetAngle1()));
} }
path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(), path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(),
splinePath->at(i).KAsm2(), spl.GetAngle2()+180)); splinePath->at(i).KAsm2(), spl.GetAngle2()+180));
delete p4;
delete p1;
} }
while (k>=0) while (k>=0)
{ {
@ -391,8 +396,8 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data,
path->append(VSplinePoint(*p1, splinePath->at(i-1).KAsm1(), spl.GetAngle1()+180, path->append(VSplinePoint(*p1, splinePath->at(i-1).KAsm1(), spl.GetAngle1()+180,
splinePath->at(i-1).KAsm2(), spl.GetAngle1())); splinePath->at(i-1).KAsm2(), spl.GetAngle1()));
} }
path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(), path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(),
splinePath->at(i).KAsm2(), spl.GetAngle2()+180)); splinePath->at(i).KAsm2(), spl.GetAngle2()+180));
} }
while (k>=0) while (k>=0)

View File

@ -417,3 +417,6 @@ void VProperty::ValueChildChanged(const QVariant &value, int typeForParent)
UserChangeEvent::~UserChangeEvent() UserChangeEvent::~UserChangeEvent()
{} {}
VPE::VPropertyPrivate::~VPropertyPrivate()
{}

View File

@ -80,6 +80,8 @@ public:
UpdateParent(false), UpdateChildren(false), Parent(nullptr), editor(nullptr), type(Property::Simple), UpdateParent(false), UpdateChildren(false), Parent(nullptr), editor(nullptr), type(Property::Simple),
Children(QList<VProperty*>()) Children(QList<VProperty*>())
{} {}
virtual ~VPropertyPrivate();
private: private:
Q_DISABLE_COPY(VPropertyPrivate) Q_DISABLE_COPY(VPropertyPrivate)
}; };