From 2e964baeef9a74d45090583b52419afa3c9c47bf Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 9 Oct 2009 21:47:33 +0000 Subject: Some const correctness changes; cleanup svn-id: r44850 --- backends/platform/ps2/Gs2dScreen.cpp | 2 +- backends/platform/ps2/icon.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'backends') diff --git a/backends/platform/ps2/Gs2dScreen.cpp b/backends/platform/ps2/Gs2dScreen.cpp index 048c122765..1da7018648 100644 --- a/backends/platform/ps2/Gs2dScreen.cpp +++ b/backends/platform/ps2/Gs2dScreen.cpp @@ -298,7 +298,7 @@ void Gs2dScreen::createAnimTextures(void) { for (int i = 0; i < 16; i++) { uint32 *destPos = (uint32*)buf; for (int ch = 15; ch >= 0; ch--) { - uint32 *src = (uint32*)(_binaryData + ((_binaryPattern[i] >> ch) & 1) * 4 * 14); + const uint32 *src = (const uint32*)(_binaryData + ((_binaryPattern[i] >> ch) & 1) * 4 * 14); for (int line = 0; line < 14; line++) destPos[line << 4] = src[line]; destPos++; diff --git a/backends/platform/ps2/icon.cpp b/backends/platform/ps2/icon.cpp index 9b88d0bb68..48afc50c42 100644 --- a/backends/platform/ps2/icon.cpp +++ b/backends/platform/ps2/icon.cpp @@ -938,9 +938,9 @@ const uint8 _rleIcoData[14018] = { uint16 PS2Icon::decompressData(uint16 **data) { uint16 inPos = 1; - uint16 *rleData = (uint16*)_rleIcoData; + const uint16 *rleData = (const uint16 *)_rleIcoData; uint16 resSize = rleData[0]; - uint16 *resData = (uint16*)malloc(resSize * sizeof(uint16)); + uint16 *resData = (uint16 *)malloc(resSize * sizeof(uint16)); uint16 outPos = 0; while (outPos < resSize) { -- cgit v1.2.3