summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap.cpp
diff options
context:
space:
mode:
authorJani Uusi-Rantala <jani.uusi-rantala@nokia.com>2011-09-06 18:35:38 +0300
committerSamuel Rødal <samuel.rodal@nokia.com>2011-09-07 07:49:57 +0200
commit3769646dd3e925b58625eace216a964fea5bf7f4 (patch)
tree6f8071d7459181e8358f1977b778ae106bb9e7b8 /src/gui/image/qpixmap.cpp
parent5234824e8f767ffd5dbaa898d7415f2ba2a900c9 (diff)
Clang build fix: QPixmap::init -> QPixmap::doInit
QPixmap::init shadows base class QPaintDevice::init with different declaration which makes latest clang builds fail on modules. Simple renaming of this private function fixes the issue. Change-Id: I65b2b09e81f4833dc9b54b36423ba7c15d9ded4f Reviewed-on: http://codereview.qt.nokia.com/4289 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/image/qpixmap.cpp')
-rw-r--r--src/gui/image/qpixmap.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp
index c7306ad6a2..c2b9c6a1b9 100644
--- a/src/gui/image/qpixmap.cpp
+++ b/src/gui/image/qpixmap.cpp
@@ -92,7 +92,7 @@ static bool qt_pixmap_thread_test()
return true;
}
-void QPixmap::init(int w, int h, int type)
+void QPixmap::doInit(int w, int h, int type)
{
if ((w > 0 && h > 0) || type == QPlatformPixmap::BitmapType)
data = QPlatformPixmap::create(w, h, (QPlatformPixmap::PixelType) type);
@@ -126,7 +126,7 @@ QPixmap::QPixmap()
: QPaintDevice()
{
(void) qt_pixmap_thread_test();
- init(0, 0, QPlatformPixmap::PixmapType);
+ doInit(0, 0, QPlatformPixmap::PixmapType);
}
/*!
@@ -147,9 +147,9 @@ QPixmap::QPixmap(int w, int h)
: QPaintDevice()
{
if (!qt_pixmap_thread_test())
- init(0, 0, QPlatformPixmap::PixmapType);
+ doInit(0, 0, QPlatformPixmap::PixmapType);
else
- init(w, h, QPlatformPixmap::PixmapType);
+ doInit(w, h, QPlatformPixmap::PixmapType);
}
/*!
@@ -166,9 +166,9 @@ QPixmap::QPixmap(const QSize &size)
: QPaintDevice()
{
if (!qt_pixmap_thread_test())
- init(0, 0, QPlatformPixmap::PixmapType);
+ doInit(0, 0, QPlatformPixmap::PixmapType);
else
- init(size.width(), size.height(), QPlatformPixmap::PixmapType);
+ doInit(size.width(), size.height(), QPlatformPixmap::PixmapType);
}
/*!
@@ -177,9 +177,9 @@ QPixmap::QPixmap(const QSize &size)
QPixmap::QPixmap(const QSize &s, int type)
{
if (!qt_pixmap_thread_test())
- init(0, 0, static_cast<QPlatformPixmap::PixelType>(type));
+ doInit(0, 0, static_cast<QPlatformPixmap::PixelType>(type));
else
- init(s.width(), s.height(), static_cast<QPlatformPixmap::PixelType>(type));
+ doInit(s.width(), s.height(), static_cast<QPlatformPixmap::PixelType>(type));
}
/*!
@@ -222,7 +222,7 @@ QPixmap::QPixmap(QPlatformPixmap *d)
QPixmap::QPixmap(const QString& fileName, const char *format, Qt::ImageConversionFlags flags)
: QPaintDevice()
{
- init(0, 0, QPlatformPixmap::PixmapType);
+ doInit(0, 0, QPlatformPixmap::PixmapType);
if (!qt_pixmap_thread_test())
return;
@@ -239,7 +239,7 @@ QPixmap::QPixmap(const QPixmap &pixmap)
: QPaintDevice()
{
if (!qt_pixmap_thread_test()) {
- init(0, 0, QPlatformPixmap::PixmapType);
+ doInit(0, 0, QPlatformPixmap::PixmapType);
return;
}
if (pixmap.paintingActive()) { // make a deep copy
@@ -268,7 +268,7 @@ QPixmap::QPixmap(const QPixmap &pixmap)
QPixmap::QPixmap(const char * const xpm[])
: QPaintDevice()
{
- init(0, 0, QPlatformPixmap::PixmapType);
+ doInit(0, 0, QPlatformPixmap::PixmapType);
if (!xpm)
return;