diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2015-06-15 03:00:00 +0300 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:16:54 +0300 |
commit | 54490d51d5c6b0d794dcbad2d634d4c95fc25b6c (patch) | |
tree | c3c413656432c0ef87b2841c80e42b55ad17d4e8 /CPP/7zip/Common/UniqBlocks.h | |
parent | 0713a3ab803e57401f18432148b4139e5fe6e5dd (diff) |
15.0515.05
Diffstat (limited to 'CPP/7zip/Common/UniqBlocks.h')
-rw-r--r-- | CPP/7zip/Common/UniqBlocks.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/CPP/7zip/Common/UniqBlocks.h b/CPP/7zip/Common/UniqBlocks.h index 9c08b09f..a376024e 100644 --- a/CPP/7zip/Common/UniqBlocks.h +++ b/CPP/7zip/Common/UniqBlocks.h @@ -10,20 +10,16 @@ struct CUniqBlocks { CObjectVector<CByteBuffer> Bufs; - CIntVector Sorted; - CIntVector BufIndexToSortedIndex; + CUIntVector Sorted; + CUIntVector BufIndexToSortedIndex; - int AddUniq(const Byte *data, size_t size); + unsigned AddUniq(const Byte *data, size_t size); UInt64 GetTotalSizeInBytes() const; void GetReverseMap(); bool IsOnlyEmpty() const { - if (Bufs.Size() == 0) - return true; - if (Bufs.Size() > 1) - return false; - return Bufs[0].Size() == 0; + return (Bufs.Size() == 0 || Bufs.Size() == 1 && Bufs[0].Size() == 0); } }; |