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 /queen | |
parent | 08b74fbf792812f230f6715926adeb073c0cc264 (diff) | |
download | scummvm-rg350-ed5948272dc3f91c793f64f6c82fc1a4b87173ce.tar.gz scummvm-rg350-ed5948272dc3f91c793f64f6c82fc1a4b87173ce.tar.bz2 scummvm-rg350-ed5948272dc3f91c793f64f6c82fc1a4b87173ce.zip |
constness
svn-id: r10714
Diffstat (limited to 'queen')
-rw-r--r-- | queen/resource.cpp | 2 | ||||
-rw-r--r-- | queen/resource.h | 4 |
2 files changed, 3 insertions, 3 deletions
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; |