forked from qt-creator/qt-creator
QmlDesigner: Reduce the allocations by 50%
Change-Id: I4ff7046a57626eb19bf4e0bfef4cc0522015123a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -74,8 +74,8 @@ ModelNode::ModelNode(const ModelNode &modelNode, AbstractView *view)
|
|||||||
\return invalid node
|
\return invalid node
|
||||||
\see invalid
|
\see invalid
|
||||||
*/
|
*/
|
||||||
ModelNode::ModelNode():
|
ModelNode::ModelNode()
|
||||||
m_internalNode(new InternalNode)
|
: m_internalNode(std::make_shared<InternalNode>())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user