From 477d6233c3672d9a60cceea3570bc775df3d9253 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 2 Jun 2011 14:11:38 +0200 Subject: ENGINES: Change 2nd param of Engine::saveGameState to Common::String --- engines/hugo/hugo.cpp | 2 +- engines/hugo/hugo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/hugo') diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index a08dbc094b..10d61f25a2 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -130,7 +130,7 @@ void HugoEngine::setMaxScore(const int newScore) { _maxscore = newScore; } -Common::Error HugoEngine::saveGameState(int slot, const char *desc) { +Common::Error HugoEngine::saveGameState(int slot, const Common::String &desc) { return (_file->saveGame(slot, desc) ? Common::kWritingFailed : Common::kNoError); } diff --git a/engines/hugo/hugo.h b/engines/hugo/hugo.h index b5b8d5ea61..81d194f1d6 100644 --- a/engines/hugo/hugo.h +++ b/engines/hugo/hugo.h @@ -301,7 +301,7 @@ public: void adjustScore(const int adjustment); int getMaxScore() const; void setMaxScore(const int newScore); - Common::Error saveGameState(int slot, const char *desc); + Common::Error saveGameState(int slot, const Common::String &desc); Common::Error loadGameState(int slot); bool hasFeature(EngineFeature f) const; const char *getCopyrightString() const; -- cgit v1.2.3