diff options
Diffstat (limited to 'engines/fullpipe/utils.h')
-rw-r--r-- | engines/fullpipe/utils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/utils.h b/engines/fullpipe/utils.h index 06b2872b54..bb8c9651da 100644 --- a/engines/fullpipe/utils.h +++ b/engines/fullpipe/utils.h @@ -68,7 +68,7 @@ public: MfcArchive(Common::WriteStream *file); Common::String readPascalString(bool twoByte = false); - void writePascalString(Common::String str, bool twoByte = false); + void writePascalString(const Common::String &str, bool twoByte = false); int readCount(); double readDouble(); CObject *parseClass(bool *isCopyReturned); @@ -117,7 +117,7 @@ public: virtual void save(MfcArchive &out) { error("Not implemented for obj type: %d", _objtype); } virtual ~CObject() {} - bool loadFile(Common::String fname); + bool loadFile(const Common::String &fname); }; class ObList : public Common::List<CObject *>, public CObject { @@ -145,7 +145,7 @@ class MemoryObject : CObject { virtual ~MemoryObject(); virtual bool load(MfcArchive &file); - void loadFile(Common::String filename); + void loadFile(const Common::String &filename); void load() { loadFile(_memfilename); } byte *getData(); byte *loadData(); @@ -181,7 +181,7 @@ class DWordArray : public Common::Array<int32>, public CObject { }; Common::String genFileName(int superId, int sceneId, const char *ext); -byte *transCyrillic(Common::String str); +byte *transCyrillic(const Common::String &str); } // End of namespace Fullpipe |