aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorD G Turner2011-12-05 15:24:58 +0000
committerD G Turner2011-12-05 15:24:58 +0000
commite19f7898b8b05c0e24b200809cef82b5e56ff1e9 (patch)
tree8642733ceb9b50c894c3a15b4af3ab1ad145fe17 /engines/dreamweb
parent5f992234deb2e0348126fb3f76907b8a586c90be (diff)
downloadscummvm-rg350-e19f7898b8b05c0e24b200809cef82b5e56ff1e9.tar.gz
scummvm-rg350-e19f7898b8b05c0e24b200809cef82b5e56ff1e9.tar.bz2
scummvm-rg350-e19f7898b8b05c0e24b200809cef82b5e56ff1e9.zip
DREAMWEB: Minor fix to 'showPCX' call to ensure constant parameters.
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/stubs.h2
-rw-r--r--engines/dreamweb/vgagrafx.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index c26aa3001c..170d10be1f 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -449,7 +449,7 @@
void readKey();
void hangOne(uint16 delay);
void hangOne();
- void showPCX(::Common::String name);
+ void showPCX(const ::Common::String &name);
void showPCX();
#endif
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index e7efc22bf3..c10fb52686 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -219,7 +219,7 @@ static Common::String getFilename(Context &context) {
return name;
}
-void DreamGenContext::showPCX(::Common::String name) {
+void DreamGenContext::showPCX(const ::Common::String &name) {
Common::File pcxFile;
if (!pcxFile.open(name)) {