[Libreoffice-commits] core.git: vcl/opengl
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jan 25 16:04:09 UTC 2020
vcl/opengl/texture.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9bcaaae1dd0fcb74687066b6f6215e487af804b2
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sat Jan 25 13:35:16 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Jan 25 17:03:35 2020 +0100
Use properly typed var for iteration
...avoiding explicit cast from int to size_t
Change-Id: Idecc7beed8fd8981b60cfe265826cb502bf27975
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87395
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx
index d33cd2453832..9f4acc0fc8eb 100644
--- a/vcl/opengl/texture.cxx
+++ b/vcl/opengl/texture.cxx
@@ -67,7 +67,7 @@ ImplOpenGLTexture::ImplOpenGLTexture( int nWidth, int nHeight, bool bAllocate )
#ifdef DBG_UTIL
std::vector< sal_uInt8 > buffer;
buffer.resize( nWidth * nHeight * 4 );
- for( size_t i = 0; i < size_t( nWidth * nHeight ); ++i )
+ for( int i = 0; i < nWidth * nHeight; ++i )
{ // pre-fill the texture with deterministic garbage
bool odd = (i & 0x01);
buffer[ i * 4 ] = odd ? 0x40 : 0xBF;
More information about the Libreoffice-commits
mailing list