diff --git a/src/plugins/qmldesigner/designercore/include/modelnode.h b/src/plugins/qmldesigner/designercore/include/modelnode.h index 5740449e458..9c4b8fb4efe 100644 --- a/src/plugins/qmldesigner/designercore/include/modelnode.h +++ b/src/plugins/qmldesigner/designercore/include/modelnode.h @@ -81,7 +81,7 @@ public: ModelNode &operator=(const ModelNode &) = default; ModelNode(ModelNode &&) = default; ModelNode &operator=(ModelNode &&) noexcept = default; - ~ModelNode(); + ~ModelNode() = default; TypeName type() const; QString simplifiedTypeName() const; @@ -268,7 +268,7 @@ public: } private: // functions - Internal::InternalNodePointer internalNode() const; + Internal::InternalNodePointer internalNode() const { return m_internalNode; } bool hasLocked() const; diff --git a/src/plugins/qmldesigner/designercore/model/modelnode.cpp b/src/plugins/qmldesigner/designercore/model/modelnode.cpp index 78f2b14e98e..cb862b03431 100644 --- a/src/plugins/qmldesigner/designercore/model/modelnode.cpp +++ b/src/plugins/qmldesigner/designercore/model/modelnode.cpp @@ -66,10 +66,6 @@ ModelNode::ModelNode(const ModelNode &modelNode, AbstractView *view) , m_view(view) {} -/*! \brief does nothing -*/ -ModelNode::~ModelNode() = default; - /*! \brief returns the name of node which is a short cut to a property like objectName \return name of the node */ @@ -657,15 +653,6 @@ void ModelNode::destroy() //\} -/*! \name Property Manipulation - * This functions interact with properties. - */ - -Internal::InternalNodePointer ModelNode::internalNode() const -{ - return m_internalNode; -} - /*! \brief returns the model of the node \return returns the model of the node