mirror of https://github.com/libAthena/athena.git
LZLookupTable: Reuse setLookAheadWindow within constructor
Provides the same behavior without duplicating code.
This commit is contained in:
parent
70aeed342f
commit
a3a6e3b42a
|
@ -14,10 +14,7 @@ LZLookupTable::LZLookupTable(atInt32 minimumMatch, atInt32 slidingWindow, atInt3
|
|||
else
|
||||
m_slidingWindow = 4096;
|
||||
|
||||
if (lookAheadWindow > 0)
|
||||
m_lookAheadWindow = lookAheadWindow;
|
||||
else
|
||||
m_lookAheadWindow = 18;
|
||||
setLookAheadWindow(lookAheadWindow);
|
||||
|
||||
m_buffer.reserve(m_minimumMatch);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue