diff options
Diffstat (limited to 'engines/mohawk/dialogs.cpp')
-rw-r--r-- | engines/mohawk/dialogs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mohawk/dialogs.cpp b/engines/mohawk/dialogs.cpp index a7369b4825..a4ac2da66c 100644 --- a/engines/mohawk/dialogs.cpp +++ b/engines/mohawk/dialogs.cpp @@ -28,20 +28,20 @@ #include "mohawk/riven.h" #include "mohawk/dialogs.h" -#include "gui/GuiManager.h" +#include "gui/gui-manager.h" #include "common/savefile.h" #include "common/translation.h" namespace Mohawk { // This used to have GUI::Dialog("MohawkDummyDialog"), but that doesn't work with the gui branch merge :P (Sorry, Tanoku!) -InfoDialog::InfoDialog(MohawkEngine *vm, Common::String message) : _vm(vm), GUI::Dialog(0, 0, 1, 1), _message(message) { +InfoDialog::InfoDialog(MohawkEngine *vm, const Common::String &message) : _vm(vm), GUI::Dialog(0, 0, 1, 1), _message(message) { _backgroundType = GUI::ThemeEngine::kDialogBackgroundSpecial; _text = new GUI::StaticTextWidget(this, 4, 4, 10, 10, _message, Graphics::kTextAlignCenter); } -void InfoDialog::setInfoText(Common::String message) { +void InfoDialog::setInfoText(const Common::String &message) { _message = message; _text->setLabel(_message); } @@ -61,7 +61,7 @@ void InfoDialog::reflowLayout() { _text->setSize(_w - 8, _h); } -PauseDialog::PauseDialog(MohawkEngine *vm, Common::String message) : InfoDialog(vm, message) { +PauseDialog::PauseDialog(MohawkEngine *vm, const Common::String &message) : InfoDialog(vm, message) { } void PauseDialog::handleKeyDown(Common::KeyState state) { |