aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/BPersistMgr.h
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-05-11 14:16:50 +0200
committerEinar Johan Trøan Sømåen2012-06-02 12:59:09 +0200
commit61945782d6a73967d122f38a4f97f9b7377abdea (patch)
tree1d3dfb3542cbcb3f035aebe739783a77ddd5d866 /engines/wintermute/BPersistMgr.h
parent7bd6151127e072f4f270a62654398db74dc7085c (diff)
downloadscummvm-rg350-61945782d6a73967d122f38a4f97f9b7377abdea.tar.gz
scummvm-rg350-61945782d6a73967d122f38a4f97f9b7377abdea.tar.bz2
scummvm-rg350-61945782d6a73967d122f38a4f97f9b7377abdea.zip
WINTERMUTE: Add const to almost all char *Filename instances.
Although done semi-automatically, almost all of these accesses don't need write-access to the string, this simplifies debugging a bit, and opens the possibility of adding in Common::String as a replacement down the line. This DOES change quite a bit of code, and has regressions wrt drawing, probably some super-classes don't fully match their sub-classes wrt virtual functions any more.
Diffstat (limited to 'engines/wintermute/BPersistMgr.h')
-rw-r--r--engines/wintermute/BPersistMgr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/BPersistMgr.h b/engines/wintermute/BPersistMgr.h
index 381308bcac..3f55146ce8 100644
--- a/engines/wintermute/BPersistMgr.h
+++ b/engines/wintermute/BPersistMgr.h
@@ -45,13 +45,13 @@ public:
byte _savedVerBuild;
byte _savedExtMajor;
byte _savedExtMinor;
- HRESULT SaveFile(char *Filename);
+ HRESULT SaveFile(const char *Filename);
uint32 GetDWORD();
void PutDWORD(uint32 Val);
char *GetString();
void PutString(const char *Val);
void Cleanup();
- HRESULT InitLoad(char *Filename);
+ HRESULT InitLoad(const char *Filename);
HRESULT InitSave(char *Desc);
HRESULT GetBytes(byte *Buffer, uint32 Size);
HRESULT PutBytes(byte *Buffer, uint32 Size);