COMMON: Rename Error to ErrorCode, introduce new Error class

This commit is contained in:
Max Horn 2011-04-18 17:39:31 +02:00
parent e9c228564a
commit 73f04118f3
22 changed files with 131 additions and 79 deletions

View file

@ -36,10 +36,10 @@ void displayErrorDialog(const char *text) {
alert.runModal();
}
void displayErrorDialog(Common::Error error, const char *extraText) {
void displayErrorDialog(const Common::Error &error, const char *extraText) {
Common::String errorText(extraText);
errorText += " ";
errorText += _(Common::errorToString(error));
errorText += _(error.getDesc());
GUI::MessageDialog alert(errorText);
alert.runModal();
}