From 20c892092907e66c6c13d1598b973486ba2fc95c Mon Sep 17 00:00:00 2001 From: richiesams Date: Mon, 5 Aug 2013 00:01:20 -0500 Subject: ZVISION: Pass the scr fileName as a const reference --- engines/zvision/scr_file_handling.cpp | 2 +- engines/zvision/script_manager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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 -- cgit v1.2.3