a bit more const correctness in XZPFile
This commit is contained in:
parent
00bbde88b8
commit
852fc7ef43
|
@ -197,7 +197,7 @@ CDirectoryFolder *CXZPFile::CreateRoot()
|
||||||
for(hlUInt i = 0; i < this->pHeader->uiDirectoryEntryCount; i++)
|
for(hlUInt i = 0; i < this->pHeader->uiDirectoryEntryCount; i++)
|
||||||
{
|
{
|
||||||
hlChar lpTemp[16] = "";
|
hlChar lpTemp[16] = "";
|
||||||
hlChar *lpLookup[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" };
|
const hlChar *lpLookup[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f" };
|
||||||
for(hlByte *lpCRC = (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC; lpCRC < (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC + sizeof(hlUInt); lpCRC++)
|
for(hlByte *lpCRC = (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC; lpCRC < (hlByte *)&this->lpDirectoryEntries[i].uiFileNameCRC + sizeof(hlUInt); lpCRC++)
|
||||||
{
|
{
|
||||||
strcat(lpTemp, lpLookup[(hlByte)(*lpCRC >> 4)]);
|
strcat(lpTemp, lpLookup[(hlByte)(*lpCRC >> 4)]);
|
||||||
|
|
Loading…
Reference in New Issue