Minore cleaning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-03-23 15:40:36 +02:00
parent 45a4a280b0
commit 47d86413d0
4 changed files with 4 additions and 8 deletions

View File

@ -296,7 +296,7 @@ VSplinePath &VSplinePath::operator =(const VSplinePath &path)
{ {
return *this; return *this;
} }
VAbstractCurve::operator=(path); VAbstractCubicBezierPath::operator=(path);
d = path.d; d = path.d;
return *this; return *this;
} }

View File

@ -316,8 +316,8 @@ void VToolSplinePath::ShowContextMenu(QGraphicsSceneContextMenuEvent *event, qui
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief UpdateControlPoints update position points control points in file. * @brief UpdateControlPoints update position control points in file.
* @param spl spline what was changed. * @param spl spline that was changed.
* @param splPath spline path. * @param splPath spline path.
* @param indexSpline index spline in spline path. * @param indexSpline index spline in spline path.
*/ */

View File

@ -53,10 +53,6 @@ MoveSplinePath::MoveSplinePath(VAbstractPattern *doc, const VSplinePath &oldSplP
SCASSERT(scene != nullptr) SCASSERT(scene != nullptr)
} }
//---------------------------------------------------------------------------------------------------------------------
MoveSplinePath::~MoveSplinePath()
{}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void MoveSplinePath::undo() void MoveSplinePath::undo()
{ {

View File

@ -46,7 +46,7 @@ class MoveSplinePath : public VUndoCommand
public: public:
MoveSplinePath(VAbstractPattern *doc, const VSplinePath &oldSplPath, const VSplinePath &newSplPath, MoveSplinePath(VAbstractPattern *doc, const VSplinePath &oldSplPath, const VSplinePath &newSplPath,
const quint32 &id, QUndoCommand *parent = nullptr); const quint32 &id, QUndoCommand *parent = nullptr);
virtual ~MoveSplinePath() Q_DECL_OVERRIDE; virtual ~MoveSplinePath() =default;
virtual void undo() Q_DECL_OVERRIDE; virtual void undo() Q_DECL_OVERRIDE;
virtual void redo() Q_DECL_OVERRIDE; virtual void redo() Q_DECL_OVERRIDE;
virtual bool mergeWith(const QUndoCommand *command) Q_DECL_OVERRIDE; virtual bool mergeWith(const QUndoCommand *command) Q_DECL_OVERRIDE;