mirror of https://github.com/libAthena/athena.git
LZLookupTable: Default-initialize class members directly in the class
Same thing without the need to duplicate the variable name.
This commit is contained in:
parent
3092dc79e7
commit
f7b8c33ed2
|
@ -24,8 +24,8 @@ public:
|
|||
private:
|
||||
typedef std::multimap<std::vector<uint8_t>, int32_t> LookupTable;
|
||||
LookupTable table;
|
||||
atInt32 m_minimumMatch;
|
||||
atInt32 m_slidingWindow;
|
||||
atInt32 m_lookAheadWindow;
|
||||
atInt32 m_minimumMatch = 3;
|
||||
atInt32 m_slidingWindow = 4096;
|
||||
atInt32 m_lookAheadWindow = 18;
|
||||
std::vector<uint8_t> m_buffer;
|
||||
};
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
#include "LZ77/LZLookupTable.hpp"
|
||||
#include <algorithm>
|
||||
|
||||
LZLookupTable::LZLookupTable() {
|
||||
m_minimumMatch = 3;
|
||||
m_slidingWindow = 4096;
|
||||
m_lookAheadWindow = 18;
|
||||
m_buffer.resize(m_minimumMatch);
|
||||
}
|
||||
LZLookupTable::LZLookupTable() : m_buffer(m_minimumMatch) {}
|
||||
|
||||
LZLookupTable::LZLookupTable(atInt32 minimumMatch, atInt32 slidingWindow, atInt32 lookAheadWindow) {
|
||||
if (minimumMatch > 0)
|
||||
|
|
Loading…
Reference in New Issue