diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-03-06 22:41:26 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-14 08:04:12 +0100 |
commit | b8112c8526a6e261c6e00bdb4fe6ceef3876d01f (patch) | |
tree | 414d6b322275bfe454ade0d224c2dc04131d3ccc /src/gui/image | |
parent | 91248b0f3b40aaebb0e02a127ee936b581b10eab (diff) |
QtGui: make some constructors explicit
This is a semi-automatic search, so I'm
reasonably sure that all the exported ones
have been caught.
Change-Id: I5b122db2498dbb2aee50c7ad95c67e708aade45b
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/qmovie.h | 2 | ||||
-rw-r--r-- | src/gui/image/qpixmap.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/image/qmovie.h b/src/gui/image/qmovie.h index 9d4cb87b15..e11dea6ad3 100644 --- a/src/gui/image/qmovie.h +++ b/src/gui/image/qmovie.h @@ -83,7 +83,7 @@ public: CacheAll }; - QMovie(QObject *parent = 0); + explicit QMovie(QObject *parent = 0); explicit QMovie(QIODevice *device, const QByteArray &format = QByteArray(), QObject *parent = 0); explicit QMovie(const QString &fileName, const QByteArray &format = QByteArray(), QObject *parent = 0); ~QMovie(); diff --git a/src/gui/image/qpixmap.h b/src/gui/image/qpixmap.h index 3d78a43917..0b21be5c8e 100644 --- a/src/gui/image/qpixmap.h +++ b/src/gui/image/qpixmap.h @@ -67,10 +67,10 @@ public: QPixmap(); explicit QPixmap(QPlatformPixmap *data); QPixmap(int w, int h); - QPixmap(const QSize &); + explicit QPixmap(const QSize &); QPixmap(const QString& fileName, const char *format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); #ifndef QT_NO_IMAGEFORMAT_XPM - QPixmap(const char * const xpm[]); + explicit QPixmap(const char * const xpm[]); #endif QPixmap(const QPixmap &); ~QPixmap(); |