diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-09 13:30:03 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-08-27 18:58:20 +0200 |
commit | 50661a9558ca3fe93bf569cc572b0fb2def5589d (patch) | |
tree | 6cf8e3d1bbfd4867db5fc79959b0c3df1a20a97a /src/opengl | |
parent | f48dba06650801c5678ae89adfc14b1cc3209da9 (diff) |
Change QByteArray to handle large arrays
Use qsizetype throughout.
Change-Id: I787af7fcfa17e1be87decb64c41c609cc24be117
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qopengldebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qopengldebug.cpp b/src/opengl/qopengldebug.cpp index ef3b955f90..3df1f2f29a 100644 --- a/src/opengl/qopengldebug.cpp +++ b/src/opengl/qopengldebug.cpp @@ -1540,7 +1540,7 @@ void QOpenGLDebugLogger::logMessage(const QOpenGLDebugMessage &debugMessage) if (rawMessage.length() > d->maxMessageLength) { qWarning("QOpenGLDebugLogger::logMessage(): message too long, truncating it\n" - " (%d bytes long, but the GL accepts up to %d bytes)", rawMessage.length(), d->maxMessageLength); + " (%d bytes long, but the GL accepts up to %d bytes)", int(rawMessage.length()), d->maxMessageLength); rawMessage.resize(d->maxMessageLength - 1); rawMessage.append('\0'); } @@ -1592,7 +1592,7 @@ void QOpenGLDebugLogger::pushGroup(const QString &name, GLuint id, QOpenGLDebugM rawName.append('\0'); if (rawName.length() > d->maxMessageLength) { qWarning("QOpenGLDebugLogger::pushGroup(): group name too long, truncating it\n" - " (%d bytes long, but the GL accepts up to %d bytes)", rawName.length(), d->maxMessageLength); + " (%d bytes long, but the GL accepts up to %d bytes)", int(rawName.length()), d->maxMessageLength); rawName.resize(d->maxMessageLength - 1); rawName.append('\0'); } |