summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-10 15:25:33 +0200
committerNoel Grandin <noel@peralex.com>2015-04-10 15:25:33 +0200
commitee33b094f6e02f8fcde2743c8d2ce400cfef64df (patch)
tree0a0a4e20e61d166c8e18ed3f3ffee8805067b815 /vcl/source/control/button.cxx
parenta4a18d393c66ce5ed59a1f8dbcd8093bee7c657c (diff)
loplugin:vclwidgets workaround
workaround "OutputDevice subclass should have nothing in it's destructor but a call to disposeOnce()." Change-Id: Icc7e09ea4dec3292b62d1aba4dc881220c115414
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 09a6ee513058..b5ba8360927f 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -88,15 +88,14 @@ ImplCommonButtonData::~ImplCommonButtonData()
}
Button::Button( WindowType nType ) :
- Control( nType )
+ Control( nType ),
+ mpButtonData( new ImplCommonButtonData )
{
- mpButtonData = new ImplCommonButtonData;
}
Button::~Button()
{
disposeOnce();
- delete mpButtonData;
}
void Button::dispose()