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/video.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/video.cpp')
-rw-r--r-- | engines/mohawk/video.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp index 04b880351e..ce2e2ae0f8 100644 --- a/engines/mohawk/video.cpp +++ b/engines/mohawk/video.cpp @@ -56,7 +56,7 @@ void VideoManager::stopVideos() { _videoStreams.clear(); } -void VideoManager::playMovie(Common::String filename, uint16 x, uint16 y, bool clearScreen) { +void VideoManager::playMovie(const Common::String &filename, uint16 x, uint16 y, bool clearScreen) { VideoHandle videoHandle = createVideoHandle(filename, x, y, false); if (videoHandle == NULL_VID_HANDLE) return; @@ -70,7 +70,7 @@ void VideoManager::playMovie(Common::String filename, uint16 x, uint16 y, bool c waitUntilMovieEnds(videoHandle); } -void VideoManager::playMovieCentered(Common::String filename, bool clearScreen) { +void VideoManager::playMovieCentered(const Common::String &filename, bool clearScreen) { VideoHandle videoHandle = createVideoHandle(filename, 0, 0, false); if (videoHandle == NULL_VID_HANDLE) return; @@ -127,7 +127,7 @@ void VideoManager::waitUntilMovieEnds(VideoHandle videoHandle) { _videoStreams[videoHandle].filename.clear(); } -void VideoManager::playBackgroundMovie(Common::String filename, int16 x, int16 y, bool loop) { +void VideoManager::playBackgroundMovie(const Common::String &filename, int16 x, int16 y, bool loop) { VideoHandle videoHandle = createVideoHandle(filename, x, y, loop); if (videoHandle == NULL_VID_HANDLE) return; @@ -356,7 +356,7 @@ VideoHandle VideoManager::createVideoHandle(uint16 id, uint16 x, uint16 y, bool return _videoStreams.size() - 1; } -VideoHandle VideoManager::createVideoHandle(Common::String filename, uint16 x, uint16 y, bool loop) { +VideoHandle VideoManager::createVideoHandle(const Common::String &filename, uint16 x, uint16 y, bool loop) { // First, check to see if that video is already playing for (uint32 i = 0; i < _videoStreams.size(); i++) if (_videoStreams[i].filename == filename) |