From 73f04118f3d03e25fa1139cfea2b1330f0098bd4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 18 Apr 2011 17:39:31 +0200 Subject: COMMON: Rename Error to ErrorCode, introduce new Error class --- engines/parallaction/parallaction.h | 2 +- engines/parallaction/saveload.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/parallaction') diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index a8a57ed2d8..c5b6b23f55 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -268,7 +268,7 @@ public: virtual Common::Error run() { Common::Error err; err = init(); - if (err != Common::kNoError) + if (err.getCode() != Common::kNoError) return err; return go(); } diff --git a/engines/parallaction/saveload.cpp b/engines/parallaction/saveload.cpp index b8116d6bc7..50a777f7b8 100644 --- a/engines/parallaction/saveload.cpp +++ b/engines/parallaction/saveload.cpp @@ -313,7 +313,7 @@ void SaveLoad_ns::renameOldSavefiles() { if (_saveFileMan->renameSavefile(oldName, newName)) { success++; } else { - warning("Error %i (%s) occurred while renaming %s to %s", _saveFileMan->getError(), + warning("Error %i (%s) occurred while renaming %s to %s", _saveFileMan->getError().getCode(), _saveFileMan->getErrorDesc().c_str(), oldName.c_str(), newName.c_str()); } } -- cgit v1.2.3