diff options
author | Max Horn | 2010-11-23 22:32:39 +0000 |
---|---|---|
committer | Max Horn | 2010-11-23 22:32:39 +0000 |
commit | 121056c12f5a624898c28a3a9a2b8b9389a97f6f (patch) | |
tree | 553ba3bbc35db9de4845e87613ec53e7ae4f1d4e /engines/mohawk/myst.cpp | |
parent | 830c39a6871ce6cae5d22bdf0f326fa063582ea7 (diff) | |
download | scummvm-rg350-121056c12f5a624898c28a3a9a2b8b9389a97f6f.tar.gz scummvm-rg350-121056c12f5a624898c28a3a9a2b8b9389a97f6f.tar.bz2 scummvm-rg350-121056c12f5a624898c28a3a9a2b8b9389a97f6f.zip |
MOHAWK: Pass objs by const ref not by value
svn-id: r54443
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r-- | engines/mohawk/myst.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index ba5e71be53..4a577464cc 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -186,7 +186,7 @@ static const char *mystFiles[] = { // qtw/myst/gar4wbf1.mov: gar4wbf2.mov has two butterflies instead of one // qtw/myst/libelev.mov: libup.mov is basically the same with sound -Common::String MohawkEngine_Myst::wrapMovieFilename(Common::String movieName, uint16 stack) { +Common::String MohawkEngine_Myst::wrapMovieFilename(const Common::String &movieName, uint16 stack) { // The Macintosh release of Myst ME stores its videos in a different folder if ((getFeatures() & GF_ME) && getPlatform() == Common::kPlatformMacintosh) return Common::String("CD Data/m/") + movieName + ".mov"; @@ -999,7 +999,7 @@ void MystResourceType5::handleMouseUp() { } // In Myst/Making of Myst, the paths are hardcoded ala Windows style without extension. Convert them. -Common::String MystResourceType6::convertMystVideoName(Common::String name) { +Common::String MystResourceType6::convertMystVideoName(const Common::String &name) { Common::String temp; for (uint32 i = 1; i < name.size(); i++) { |