aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/utils.h
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-24 00:35:37 +0200
committerFilippos Karapetis2017-03-24 00:56:11 +0200
commita93c8c5d3ee5345f3a7889d501370f30494e5278 (patch)
tree5b880963702e552b34f3ebab5247897bec2b0dc6 /engines/fullpipe/utils.h
parent1c083fe0004c2b952da3bd8e45de0c4139f62786 (diff)
downloadscummvm-rg350-a93c8c5d3ee5345f3a7889d501370f30494e5278.tar.gz
scummvm-rg350-a93c8c5d3ee5345f3a7889d501370f30494e5278.tar.bz2
scummvm-rg350-a93c8c5d3ee5345f3a7889d501370f30494e5278.zip
Unify all string function parameters to be const Common::String &
Thanks to wjp for the suggestion
Diffstat (limited to 'engines/fullpipe/utils.h')
-rw-r--r--engines/fullpipe/utils.h8
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