From 90c3ae249326eddfe2f501752629e1974ac5eb35 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 8 Mar 2011 18:44:27 +0100 Subject: ENGINES: Change GUIErrorMessage to take param by ref, not by copy --- engines/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/engine.cpp') 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); -- cgit v1.2.3