Skip to content

Commit 5c6f05a

Browse files
committed
Remove pointless static keywords
1 parent 343f970 commit 5c6f05a

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

lzokay.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static uint16_t get_le16(const uint8_t* p) {
3434
}
3535
#endif
3636

37-
static constexpr std::size_t Max255Count = std::size_t(~0) / 255 - 2;
37+
constexpr std::size_t Max255Count = std::size_t(~0) / 255 - 2;
3838

3939
#define NEEDS_IN(count) \
4040
if (inp + (count) > inp_end) { \
@@ -67,26 +67,26 @@ static constexpr std::size_t Max255Count = std::size_t(~0) / 255 - 2;
6767
*outp++ = l; \
6868
}
6969

70-
static constexpr uint32_t M1MaxOffset = 0x0400;
71-
static constexpr uint32_t M2MaxOffset = 0x0800;
72-
static constexpr uint32_t M3MaxOffset = 0x4000;
73-
static constexpr uint32_t M4MaxOffset = 0xbfff;
74-
75-
static constexpr uint32_t M1MinLen = 2;
76-
static constexpr uint32_t M1MaxLen = 2;
77-
static constexpr uint32_t M2MinLen = 3;
78-
static constexpr uint32_t M2MaxLen = 8;
79-
static constexpr uint32_t M3MinLen = 3;
80-
static constexpr uint32_t M3MaxLen = 33;
81-
static constexpr uint32_t M4MinLen = 3;
82-
static constexpr uint32_t M4MaxLen = 9;
83-
84-
static constexpr uint32_t M1Marker = 0x0;
85-
static constexpr uint32_t M2Marker = 0x40;
86-
static constexpr uint32_t M3Marker = 0x20;
87-
static constexpr uint32_t M4Marker = 0x10;
88-
89-
static constexpr uint32_t MaxMatchByLengthLen = 34; /* Max M3 len + 1 */
70+
constexpr uint32_t M1MaxOffset = 0x0400;
71+
constexpr uint32_t M2MaxOffset = 0x0800;
72+
constexpr uint32_t M3MaxOffset = 0x4000;
73+
constexpr uint32_t M4MaxOffset = 0xbfff;
74+
75+
constexpr uint32_t M1MinLen = 2;
76+
constexpr uint32_t M1MaxLen = 2;
77+
constexpr uint32_t M2MinLen = 3;
78+
constexpr uint32_t M2MaxLen = 8;
79+
constexpr uint32_t M3MinLen = 3;
80+
constexpr uint32_t M3MaxLen = 33;
81+
constexpr uint32_t M4MinLen = 3;
82+
constexpr uint32_t M4MaxLen = 9;
83+
84+
constexpr uint32_t M1Marker = 0x0;
85+
constexpr uint32_t M2Marker = 0x40;
86+
constexpr uint32_t M3Marker = 0x20;
87+
constexpr uint32_t M4Marker = 0x10;
88+
89+
constexpr uint32_t MaxMatchByLengthLen = 34; /* Max M3 len + 1 */
9090

9191
EResult decompress(const uint8_t* src, std::size_t src_size,
9292
uint8_t* dst, std::size_t init_dst_size,

0 commit comments

Comments
 (0)