diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-12 10:05:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 08:10:29 +0000 |
commit | 0f6725454823a5789f3e1c70dad024c46d3f6fc9 (patch) | |
tree | 370646f32cddb69aadf0d9659e90ed8600d43901 /tools/source/zcodec | |
parent | f12b17867ef8fa2cfc2ddb7ecda9d7acc57cfa59 (diff) |
clang-tidy modernize-loop-convert in toolkit to uui
Change-Id: I805aa1389ef8dde158f0b776d6b59579fa3082e4
Reviewed-on: https://gerrit.libreoffice.org/24921
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools/source/zcodec')
-rw-r--r-- | tools/source/zcodec/zcodec.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx index db86c4ec3190..fcf8c2126a6b 100644 --- a/tools/source/zcodec/zcodec.cxx +++ b/tools/source/zcodec/zcodec.cxx @@ -337,10 +337,10 @@ void ZCodec::InitDecompress(SvStream & inStream) if ( mbStatus && mbGzLib ) { sal_uInt8 n1, n2, j, nMethod, nFlags; - for ( int i = 0; i < 2; i++ ) // gz - magic number + for (int i : gz_magic) // gz - magic number { inStream.ReadUChar( j ); - if ( j != gz_magic[ i ] ) + if ( j != i ) mbStatus = false; } inStream.ReadUChar( nMethod ); |