String constants are const -> fixing compiler warnings

svn-id: r21036
This commit is contained in:
Max Horn 2006-03-03 14:44:50 +00:00
parent 5e1f3fa2fa
commit 5d3ef6aec2
3 changed files with 3 additions and 3 deletions

View File

@ -447,7 +447,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
_fileHandle = new ScummNESFile();
_containerFile = tmpBuf;
} else if ((_game.platform == Common::kPlatformC64) && _substResFileName.winName) {
char *tmpBuf1, *tmpBuf2;
const char *tmpBuf1, *tmpBuf2;
if (_game.id == GID_MANIAC) {
tmpBuf1 = "maniac1.d64";
tmpBuf2 = "maniac2.d64";

View File

@ -1567,7 +1567,7 @@ static const int zakResourcesPerFile[59] = {
};
ScummC64File::ScummC64File(char *disk1, char *disk2, bool maniac) : _stream(0), _buf(0), _maniac(maniac) {
ScummC64File::ScummC64File(const char *disk1, const char *disk2, bool maniac) : _stream(0), _buf(0), _maniac(maniac) {
_disk1 = disk1;
_disk2 = disk2;

View File

@ -142,7 +142,7 @@ private:
uint16 fileReadUint16LE();
public:
ScummC64File(char *disk1, char *disk2, bool maniac);
ScummC64File(const char *disk1, const char *disk2, bool maniac);
void setEnc(byte value);
bool open(const char *filename, AccessMode mode = kFileReadMode);