Skip to content

Commit 9ba22da

Browse files
committed
Cosmetic changes
1 parent 058c1a7 commit 9ba22da

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/transform/LZCodec.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,10 +537,8 @@ bool LZPCodec::forward(SliceArray<byte>& input, SliceArray<byte>& output, int co
537537
ctx = (ctx << 8) | val;
538538
dst[dstIdx++] = src[srcIdx++];
539539

540-
if (ref != 0) {
541-
if (val == MATCH_FLAG)
542-
dst[dstIdx++] = byte(0xFF);
543-
}
540+
if ((ref != 0) && (val == MATCH_FLAG))
541+
dst[dstIdx++] = byte(0xFF);
544542

545543
continue;
546544
}

src/transform/LZCodec.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ namespace kanzi {
145145
virtual ~LZPCodec()
146146
{
147147
delete[] _hashes;
148-
_hashSize = 0;
149148
}
150149

151150
bool forward(SliceArray<byte>& src, SliceArray<byte>& dst, int length) THROW;

0 commit comments

Comments
 (0)