diff options
author | Colin Snover | 2017-05-08 00:04:40 -0500 |
---|---|---|
committer | Colin Snover | 2017-05-08 11:26:47 -0500 |
commit | 13925065cb90d3cb2300cbd17935aafd747f68b1 (patch) | |
tree | 72c50e359550036f2bd5a6d0e6cefe0d028e40d7 /engines | |
parent | f8d4ffa8ed86e25476956d6d506ca3cccd5864e0 (diff) | |
download | scummvm-rg350-13925065cb90d3cb2300cbd17935aafd747f68b1.tar.gz scummvm-rg350-13925065cb90d3cb2300cbd17935aafd747f68b1.tar.bz2 scummvm-rg350-13925065cb90d3cb2300cbd17935aafd747f68b1.zip |
SCI: Fix unnecessary copy of Common::String
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/resource.h | 2 | ||||
-rw-r--r-- | engines/sci/resource_audio.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index b869c7a627..d8651304be 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -571,7 +571,7 @@ protected: * Process wave files as patches for Audio resources. */ void readWaveAudioPatches(); - void processWavePatch(ResourceId resourceId, Common::String name); + void processWavePatch(ResourceId resourceId, const Common::String &name); /** * Applies to all versions before 0.000.395 (i.e. KQ4 old, XMAS 1988 and LSL2). diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index 6e932526eb..a5501cdb84 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -196,7 +196,7 @@ void ResourceManager::addNewGMPatch(SciGameId gameId) { } } -void ResourceManager::processWavePatch(ResourceId resourceId, Common::String name) { +void ResourceManager::processWavePatch(ResourceId resourceId, const Common::String &name) { ResourceSource *resSrc = new WaveResourceSource(name); Common::File file; file.open(name); |