Skip to content

Commit 483e766

Browse files
committed
.
1 parent 76f45bc commit 483e766

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Diff for: Compressor.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#include "Compressor.h"
22
#include "VarsizedInt.cpp/VarsizedInt.h"
33

4-
const size_t CCompressor::MinChunkSize = 3;
5-
const uint8_t CCompressor::ChunkSame = 0, CCompressor::ChunkMixed = 1;
6-
74
bool CCompressor::GetNextChunkSame(uint8_t* src, uint64_t srcSize, uint64_t pos, uint64_t* left, uint64_t* right) {
85
int16_t chunkValue = -1;
96
uint64_t chunkSize = 0;

Diff for: Compressor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
class CCompressor {
66
protected:
7-
static const size_t MinChunkSize;
8-
static const uint8_t ChunkSame, ChunkMixed;
7+
static constexpr size_t MinChunkSize = 3;
8+
static constexpr uint8_t ChunkSame = 0, ChunkMixed = 1;
99

1010
static bool GetNextChunkSame(uint8_t* src, uint64_t srcSize, uint64_t pos, uint64_t* left, uint64_t* right);
1111
static void PutChunkMixed(uint8_t* src, uint64_t* i, uint64_t iEnd, uint8_t* dest, uint64_t* destPos);

0 commit comments

Comments
 (0)