diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2019-10-04 10:13:27 +0200 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2019-10-07 09:25:08 +0200 |
commit | 6236074318ef597baf9379f9c1afffdfeb57627b (patch) | |
tree | b9644fe9f02c7f173212512169ed946f899be42f /src/gui/opengl/qopengltexture.cpp | |
parent | 2c4b44d7500be72b6eb74c4989e7311b3f924119 (diff) |
QOpenGLTexture::setBorderColor: Pass QColor by const &
Change-Id: I97ced427691c5361bc7aa232892abf28423c5ee9
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/opengl/qopengltexture.cpp')
-rw-r--r-- | src/gui/opengl/qopengltexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp index 61a6202017..ed58766dde 100644 --- a/src/gui/opengl/qopengltexture.cpp +++ b/src/gui/opengl/qopengltexture.cpp @@ -4612,7 +4612,7 @@ QOpenGLTexture::WrapMode QOpenGLTexture::wrapMode(QOpenGLTexture::CoordinateDire \note This function has no effect on Mac and Qt built for OpenGL ES 2. \sa borderColor() */ -void QOpenGLTexture::setBorderColor(QColor color) +void QOpenGLTexture::setBorderColor(const QColor &color) { setBorderColor(static_cast<float>(color.redF()), static_cast<float>(color.greenF()), static_cast<float>(color.blueF()), static_cast<float>(color.alphaF())); |