summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-05-04 11:45:27 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-05-09 19:47:53 +0000
commita213011a53f12f101d08a04afc8fdacd2d54a232 (patch)
treed4db99fdee7b9e3a62a5b3f5219726ac06fb70fa /src/gui/image/qimage.cpp
parente8995de22a0ccca932e24994c6e1861ef062983b (diff)
QtGui: Introduce delegating constructors.
Reduce code duplication by chaining constructors. Change-Id: Ida25105e33cc3ef870f416931212e2216e9c6dfb Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/gui/image/qimage.cpp')
-rw-r--r--src/gui/image/qimage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp
index 68e2847f02..162a1a20b8 100644
--- a/src/gui/image/qimage.cpp
+++ b/src/gui/image/qimage.cpp
@@ -767,9 +767,8 @@ QImage::QImage() Q_DECL_NOEXCEPT
drawing onto it with QPainter.
*/
QImage::QImage(int width, int height, Format format)
- : QPaintDevice()
+ : QImage(QSize(width, height), format)
{
- d = QImageData::create(QSize(width, height), format);
}
/*!