From e19f7898b8b05c0e24b200809cef82b5e56ff1e9 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 5 Dec 2011 15:24:58 +0000 Subject: DREAMWEB: Minor fix to 'showPCX' call to ensure constant parameters. --- engines/dreamweb/stubs.h | 2 +- engines/dreamweb/vgagrafx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/dreamweb') 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)) { -- cgit v1.2.3