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:
Lioncash
2019-08-15 23:39:43 -04:00
parent 48ae0d32fe
commit 663696fe72
2 changed files with 4 additions and 3 deletions

View File

@@ -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