diff options
Diffstat (limited to 'examples/widgets/graphicsview/boxes')
-rw-r--r-- | examples/widgets/graphicsview/boxes/glbuffers.h | 4 | ||||
-rw-r--r-- | examples/widgets/graphicsview/boxes/roundedbox.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/graphicsview/boxes/glbuffers.h b/examples/widgets/graphicsview/boxes/glbuffers.h index 2b91915e8e..b3b1777f81 100644 --- a/examples/widgets/graphicsview/boxes/glbuffers.h +++ b/examples/widgets/graphicsview/boxes/glbuffers.h @@ -99,7 +99,7 @@ class GLTexture2D : public GLTexture { public: GLTexture2D(int width, int height); - GLTexture2D(const QString& fileName, int width = 0, int height = 0); + explicit GLTexture2D(const QString& fileName, int width = 0, int height = 0); void load(int width, int height, QRgb *data); virtual void bind(); virtual void unbind(); @@ -120,7 +120,7 @@ class GLTextureCube : public GLTexture { public: GLTextureCube(int size); - GLTextureCube(const QStringList& fileNames, int size = 0); + explicit GLTextureCube(const QStringList& fileNames, int size = 0); void load(int size, int face, QRgb *data); virtual void bind(); virtual void unbind(); diff --git a/examples/widgets/graphicsview/boxes/roundedbox.h b/examples/widgets/graphicsview/boxes/roundedbox.h index 3edfb69fa8..0ab6766af3 100644 --- a/examples/widgets/graphicsview/boxes/roundedbox.h +++ b/examples/widgets/graphicsview/boxes/roundedbox.h @@ -65,7 +65,7 @@ class GLRoundedBox : public GLTriangleMesh<P3T2N3Vertex, unsigned short> { public: // 0 < r < 0.5, 0 <= n <= 125 - GLRoundedBox(float r = 0.25f, float scale = 1.0f, int n = 10); + explicit GLRoundedBox(float r = 0.25f, float scale = 1.0f, int n = 10); }; |