summaryrefslogtreecommitdiffstats
path: root/vcl/inc/controldata.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/controldata.hxx')
-rw-r--r--vcl/inc/controldata.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/inc/controldata.hxx b/vcl/inc/controldata.hxx
index b4028026c49e..5554afc951dd 100644
--- a/vcl/inc/controldata.hxx
+++ b/vcl/inc/controldata.hxx
@@ -26,7 +26,7 @@ namespace vcl
{
struct ImplControlData
{
- mutable ControlLayoutData* mpLayoutData;
+ mutable std::unique_ptr<ControlLayoutData> mpLayoutData;
VclPtr<OutputDevice> mpReferenceDevice;
ImplControlData()
@@ -37,7 +37,6 @@ namespace vcl
~ImplControlData()
{
- delete mpLayoutData;
}
};