diff options
author | Filippos Karapetis | 2017-03-24 00:35:37 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-03-24 00:56:11 +0200 |
commit | a93c8c5d3ee5345f3a7889d501370f30494e5278 (patch) | |
tree | 5b880963702e552b34f3ebab5247897bec2b0dc6 /engines/fullpipe/utils.cpp | |
parent | 1c083fe0004c2b952da3bd8e45de0c4139f62786 (diff) | |
download | scummvm-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.cpp')
-rw-r--r-- | engines/fullpipe/utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp index ed30096b69..5500d23202 100644 --- a/engines/fullpipe/utils.cpp +++ b/engines/fullpipe/utils.cpp @@ -33,7 +33,7 @@ namespace Fullpipe { -bool CObject::loadFile(Common::String fname) { +bool CObject::loadFile(const Common::String &fname) { Common::File file; if (!file.open(fname)) @@ -112,7 +112,7 @@ Common::String MfcArchive::readPascalString(bool twoByte) { return result; } -void MfcArchive::writePascalString(Common::String str, bool twoByte) { +void MfcArchive::writePascalString(const Common::String &str, bool twoByte) { int len = str.size(); if (twoByte) @@ -154,7 +154,7 @@ bool MemoryObject::load(MfcArchive &file) { return true; } -void MemoryObject::loadFile(Common::String filename) { +void MemoryObject::loadFile(const Common::String &filename) { debugC(5, kDebugLoading, "MemoryObject::loadFile(<%s>)", filename.c_str()); if (filename.empty()) @@ -501,7 +501,7 @@ Common::String genFileName(int superId, int sceneId, const char *ext) { } // Translates cp-1251..utf-8 -byte *transCyrillic(Common::String str) { +byte *transCyrillic(const Common::String &str) { byte *s = (byte *)str.c_str(); static byte tmp[1024]; |