From 852fc7ef43ed9c7d960dbc936410880a6ec44fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Sat, 30 Jun 2012 13:55:49 +0200 Subject: [PATCH] a bit more const correctness in XZPFile --- HLLib/XZPFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HLLib/XZPFile.cpp b/HLLib/XZPFile.cpp index 9eda139..c8cd509 100644 --- a/HLLib/XZPFile.cpp +++ b/HLLib/XZPFile.cpp @@ -197,7 +197,7 @@ CDirectoryFolder *CXZPFile::CreateRoot() for(hlUInt i = 0; i < this->pHeader->uiDirectoryEntryCount; i++) { 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++) { strcat(lpTemp, lpLookup[(hlByte)(*lpCRC >> 4)]);