mirror of
https://github.com/libAthena/athena.git
synced 2025-12-09 21:47:52 +00:00
LZLookupTable: Make member functions const where applicable
While we're at it, we can convert compare_equal into an operator== operator!= pair, and make the curPos argument to search() const as well.
This commit is contained in:
@@ -36,7 +36,7 @@ void LZLookupTable::setLookAheadWindow(atInt32 lookAheadWindow) {
|
||||
m_lookAheadWindow = 18;
|
||||
}
|
||||
|
||||
LZLengthOffset LZLookupTable::search(atUint8* curPos, const atUint8* dataBegin, const atUint8* dataEnd) {
|
||||
LZLengthOffset LZLookupTable::search(const atUint8* curPos, const atUint8* dataBegin, const atUint8* dataEnd) {
|
||||
LZLengthOffset loPair = {0, 0};
|
||||
|
||||
// Returns negative 1 for search failures since the current position is passed the size to be compressed
|
||||
|
||||
Reference in New Issue
Block a user