diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-11-13 12:37:20 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-14 19:26:20 +0100 |
commit | c887fbd79503824882df08365e39d27580164ac9 (patch) | |
tree | ce91cff0254df53378fc7af24742c39cffabbc47 /src/gui/opengl/qopengltexture.h | |
parent | a256c8459a8eee06833d59b0292c67150e856e8d (diff) | |
download | qtbase-c887fbd79503824882df08365e39d27580164ac9.tar.gz |
QOpenGLTexture: mark (QImage) ctor explicit
Disables implicit conversions from QImage to QOpenGLTexture.
Change-Id: I09b4d236dde8eae5258e6a954f4e02b4451990bd
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengltexture.h')
-rw-r--r-- | src/gui/opengl/qopengltexture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltexture.h b/src/gui/opengl/qopengltexture.h index b761d63775..3428f0d74a 100644 --- a/src/gui/opengl/qopengltexture.h +++ b/src/gui/opengl/qopengltexture.h @@ -97,7 +97,7 @@ public: }; explicit QOpenGLTexture(Target target); - QOpenGLTexture(const QImage& image, MipMapGeneration genMipMaps = GenerateMipMaps); + explicit QOpenGLTexture(const QImage& image, MipMapGeneration genMipMaps = GenerateMipMaps); ~QOpenGLTexture(); // Creation and destruction |