mirror of
https://github.com/libAthena/athena.git
synced 2025-06-29 09:53:31 +00:00
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
|
else
|
||||||
m_slidingWindow = 4096;
|
m_slidingWindow = 4096;
|
||||||
|
|
||||||
if (lookAheadWindow > 0)
|
setLookAheadWindow(lookAheadWindow);
|
||||||
m_lookAheadWindow = lookAheadWindow;
|
|
||||||
else
|
|
||||||
m_lookAheadWindow = 18;
|
|
||||||
|
|
||||||
m_buffer.reserve(m_minimumMatch);
|
m_buffer.reserve(m_minimumMatch);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user