summaryrefslogtreecommitdiffstats
path: root/tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp')
-rw-r--r--tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp b/tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp
index 1ad3f6b..77af2d4 100644
--- a/tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp
+++ b/tools/shared/qtpropertybrowser/qttreepropertybrowser.cpp
@@ -726,9 +726,8 @@ void QtTreePropertyBrowserPrivate::editItem(QtBrowserItem *browserItem)
Creates a property browser with the given \a parent.
*/
QtTreePropertyBrowser::QtTreePropertyBrowser(QWidget *parent)
- : QtAbstractPropertyBrowser(parent)
+ : QtAbstractPropertyBrowser(parent), d_ptr(new QtTreePropertyBrowserPrivate)
{
- d_ptr = new QtTreePropertyBrowserPrivate;
d_ptr->q_ptr = this;
d_ptr->init(this);
@@ -747,7 +746,6 @@ QtTreePropertyBrowser::QtTreePropertyBrowser(QWidget *parent)
*/
QtTreePropertyBrowser::~QtTreePropertyBrowser()
{
- delete d_ptr;
}
/*!