aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorrichiesams2013-08-05 00:01:20 -0500
committerrichiesams2013-08-05 00:05:26 -0500
commit20c892092907e66c6c13d1598b973486ba2fc95c (patch)
tree9babf7f331f8946e6d09cfb8488dc27e20962ef2 /engines/zvision
parent4b0015b8e997e9ca95141216f2b24ee33df01055 (diff)
downloadscummvm-rg350-20c892092907e66c6c13d1598b973486ba2fc95c.tar.gz
scummvm-rg350-20c892092907e66c6c13d1598b973486ba2fc95c.tar.bz2
scummvm-rg350-20c892092907e66c6c13d1598b973486ba2fc95c.zip
ZVISION: Pass the scr fileName as a const reference
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/scr_file_handling.cpp2
-rw-r--r--engines/zvision/script_manager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/scr_file_handling.cpp b/engines/zvision/scr_file_handling.cpp
index 1dc8ee5d4e..cd3cfe4269 100644
--- a/engines/zvision/scr_file_handling.cpp
+++ b/engines/zvision/scr_file_handling.cpp
@@ -33,7 +33,7 @@
namespace ZVision {
-void ScriptManager::parseScrFile(Common::String fileName) {
+void ScriptManager::parseScrFile(const Common::String &fileName) {
Common::File file;
if (!file.open(fileName))
return; // File.open already throws a warning if the file doesn't exist, so there is no need to throw another
diff --git a/engines/zvision/script_manager.h b/engines/zvision/script_manager.h
index 88340313cc..484069b335 100644
--- a/engines/zvision/script_manager.h
+++ b/engines/zvision/script_manager.h
@@ -84,7 +84,7 @@ private:
*
* @param fileName Name of the .scr file
*/
- void parseScrFile(Common::String fileName);
+ void parseScrFile(const Common::String &fileName);
/**
* Parses the stream into a Puzzle object