diff options
-rw-r--r-- | engines/zvision/scr_file_handling.cpp | 2 | ||||
-rw-r--r-- | engines/zvision/script_manager.h | 2 |
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 |