forked from qt-creator/qt-creator
QmlDesigner: Fix memory leak because of template magic
Be careful if you use a private smart pointer. Change-Id: Ia78583b080c8d936d98517c55d3294d3040f8cdb Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
7107fd1591
commit
bb13b8d65e
@@ -152,6 +152,21 @@ ResizeController::ResizeController(LayerItem *layerItem, FormEditorItem *formEdi
|
|||||||
updatePosition();
|
updatePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResizeController::ResizeController(const ResizeController &other)
|
||||||
|
: m_data(other.m_data)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ResizeController::~ResizeController()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
ResizeController &ResizeController::operator =(const ResizeController &other)
|
||||||
|
{
|
||||||
|
m_data = other.m_data;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ResizeController::isValid() const
|
bool ResizeController::isValid() const
|
||||||
{
|
{
|
||||||
|
@@ -49,6 +49,10 @@ public:
|
|||||||
|
|
||||||
ResizeController();
|
ResizeController();
|
||||||
ResizeController(LayerItem *layerItem, FormEditorItem *formEditorItem);
|
ResizeController(LayerItem *layerItem, FormEditorItem *formEditorItem);
|
||||||
|
ResizeController(const ResizeController &resizeController);
|
||||||
|
~ResizeController();
|
||||||
|
|
||||||
|
ResizeController& operator=(const ResizeController &other);
|
||||||
|
|
||||||
void show();
|
void show();
|
||||||
void hide();
|
void hide();
|
||||||
|
Reference in New Issue
Block a user