diff options
author | Einar Johan Trøan Sømåen | 2012-05-11 14:16:50 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-02 12:59:09 +0200 |
commit | 61945782d6a73967d122f38a4f97f9b7377abdea (patch) | |
tree | 1d3dfb3542cbcb3f035aebe739783a77ddd5d866 /engines/wintermute/AdEntity.h | |
parent | 7bd6151127e072f4f270a62654398db74dc7085c (diff) | |
download | scummvm-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/AdEntity.h')
-rw-r--r-- | engines/wintermute/AdEntity.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/AdEntity.h b/engines/wintermute/AdEntity.h index 1677d3e097..1ee0e75fe4 100644 --- a/engines/wintermute/AdEntity.h +++ b/engines/wintermute/AdEntity.h @@ -35,11 +35,11 @@ namespace WinterMute { class CAdEntity : public CAdTalkHolder {
public:
- HRESULT SetSprite(char *Filename);
+ HRESULT SetSprite(const char *Filename);
int _walkToX;
int _walkToY;
TDirection _walkToDir;
- void SetItem(char *ItemName);
+ void SetItem(const char *ItemName);
char *_item;
DECLARE_PERSISTENT(CAdEntity, CAdTalkHolder)
void UpdatePosition();
@@ -50,7 +50,7 @@ public: virtual HRESULT Display();
CAdEntity(CBGame *inGame);
virtual ~CAdEntity();
- HRESULT LoadFile(char *Filename);
+ HRESULT LoadFile(const char *Filename);
HRESULT LoadBuffer(byte *Buffer, bool Complete = true);
TEntityType _subtype;
|