diff options
author | Max Horn | 2003-10-10 10:42:37 +0000 |
---|---|---|
committer | Max Horn | 2003-10-10 10:42:37 +0000 |
commit | ed5948272dc3f91c793f64f6c82fc1a4b87173ce (patch) | |
tree | ce7042595e4c732230a0e8fb1bdc1af5a1e39c9e | |
parent | 08b74fbf792812f230f6715926adeb073c0cc264 (diff) | |
download | scummvm-rg350-ed5948272dc3f91c793f64f6c82fc1a4b87173ce.tar.gz scummvm-rg350-ed5948272dc3f91c793f64f6c82fc1a4b87173ce.tar.bz2 scummvm-rg350-ed5948272dc3f91c793f64f6c82fc1a4b87173ce.zip |
constness
svn-id: r10714
-rw-r--r-- | base/engine.h | 2 | ||||
-rw-r--r-- | queen/resource.cpp | 2 | ||||
-rw-r--r-- | queen/resource.h | 4 | ||||
-rw-r--r-- | sky/disk.cpp | 2 | ||||
-rw-r--r-- | sky/disk.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/base/engine.h b/base/engine.h index 049b0b9bdc..367e35f132 100644 --- a/base/engine.h +++ b/base/engine.h @@ -67,7 +67,7 @@ public: Timer * _timer; protected: - char *_gameDataPath; + const char *_gameDataPath; public: Engine(GameDetector *detector, OSystem *syst); diff --git a/queen/resource.cpp b/queen/resource.cpp index 01bc304ad7..bb8bac391c 100644 --- a/queen/resource.cpp +++ b/queen/resource.cpp @@ -43,7 +43,7 @@ const GameVersion Resource::_gameVersions[] = { { "PE100", true, true, 0x000B40F5 } }; -Resource::Resource(char *datafilePath) +Resource::Resource(const char *datafilePath) : _resourceEntries(0), _resourceTable(NULL) { _datafilePath = datafilePath; diff --git a/queen/resource.h b/queen/resource.h index 8440b303af..744ed8c3bf 100644 --- a/queen/resource.h +++ b/queen/resource.h @@ -57,7 +57,7 @@ struct GameVersion { class Resource { public: - Resource(char *datafilePath); + Resource(const char *datafilePath); ~Resource(void); uint8 *loadFile(const char *filename, uint32 skipBytes = 0); bool exists(const char *filename); @@ -66,7 +66,7 @@ public: protected: File *_resourceFile; - char *_datafilePath; + const char *_datafilePath; const GameVersion *_gameVersion; uint32 _resourceEntries; ResourceEntry *_resourceTable; diff --git a/sky/disk.cpp b/sky/disk.cpp index 0bc256c22f..010953194f 100644 --- a/sky/disk.cpp +++ b/sky/disk.cpp @@ -31,7 +31,7 @@ static const char *dataFilename = "sky.dsk"; static const char *dinnerFilename = "sky.dnr"; -SkyDisk::SkyDisk(char *gameDataPath) { +SkyDisk::SkyDisk(const char *gameDataPath) { _prefRoot = NULL; // Set default file directory diff --git a/sky/disk.h b/sky/disk.h index eaf9be4e58..a369ae32c3 100644 --- a/sky/disk.h +++ b/sky/disk.h @@ -38,7 +38,7 @@ struct PrefFile { class SkyDisk { public: - SkyDisk(char *gameDataPath); + SkyDisk(const char *gameDataPath); ~SkyDisk(void); uint8 *loadFile(uint16 fileNr, uint8 *dest); |