aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-03-08 18:44:27 +0100
committerMax Horn2011-03-18 14:43:53 +0100
commit90c3ae249326eddfe2f501752629e1974ac5eb35 (patch)
treef6cf7ce1af4f8d03d2dff467a86d8efecf7db337
parent4130f66af2fbb44e32060f40ff1f5843c9a9a6b8 (diff)
downloadscummvm-rg350-90c3ae249326eddfe2f501752629e1974ac5eb35.tar.gz
scummvm-rg350-90c3ae249326eddfe2f501752629e1974ac5eb35.tar.bz2
scummvm-rg350-90c3ae249326eddfe2f501752629e1974ac5eb35.zip
ENGINES: Change GUIErrorMessage to take param by ref, not by copy
-rw-r--r--engines/engine.cpp2
-rw-r--r--engines/engine.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index d773f370f5..5ce0f99921 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -281,7 +281,7 @@ void initGraphics(int width, int height, bool defaultTo1xScaler) {
initGraphics(width, height, defaultTo1xScaler, &format);
}
-void GUIErrorMessage(const Common::String msg) {
+void GUIErrorMessage(const Common::String &msg) {
g_system->setWindowCaption("Error");
g_system->beginGFXTransaction();
initCommonGFX(false);
diff --git a/engines/engine.h b/engines/engine.h
index b4764319b8..508e9887ef 100644
--- a/engines/engine.h
+++ b/engines/engine.h
@@ -47,7 +47,7 @@ namespace GUI {
/**
* Initializes graphics and shows error message.
*/
-void GUIErrorMessage(const Common::String msg);
+void GUIErrorMessage(const Common::String &msg);
class Engine {