ENGINES: Change GUIErrorMessage to take param by ref, not by copy

This commit is contained in:
Max Horn 2011-03-08 18:44:27 +01:00
parent 4130f66af2
commit 90c3ae2493
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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 {