summaryrefslogtreecommitdiff
path: root/tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp')
-rw-r--r--tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp b/tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp
index 96fe5d9cc4..15a5381f1d 100644
--- a/tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp
+++ b/tools/shared/qtgradienteditor/qtgradientstopscontroller.cpp
@@ -590,9 +590,8 @@ void QtGradientStopsControllerPrivate::slotZoomChanged(double zoom)
}
QtGradientStopsController::QtGradientStopsController(QObject *parent)
- : QObject(parent)
+ : QObject(parent), d_ptr(new QtGradientStopsControllerPrivate())
{
- d_ptr = new QtGradientStopsControllerPrivate();
d_ptr->q_ptr = this;
d_ptr->m_spec = QColor::Hsv;
@@ -671,7 +670,6 @@ void QtGradientStopsController::setUi(Ui::QtGradientEditor *ui)
QtGradientStopsController::~QtGradientStopsController()
{
- delete d_ptr;
}
void QtGradientStopsController::setGradientStops(const QGradientStops &stops)