diff options
-rw-r--r-- | common/savefile.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/savefile.h b/common/savefile.h index e551455ce4..58ac48ea4a 100644 --- a/common/savefile.h +++ b/common/savefile.h @@ -81,6 +81,13 @@ protected: SFMError _error; String _errorDesc; + /** + * Sets the last ocurred error. + * @param error Code identifying the last error. + * @param errorDesc String describing the last error. + */ + virtual void setError(SFMError error, const String &errorDesc) { _error = error; _errorDesc = errorDesc; } + public: virtual ~SaveFileManager() {} @@ -104,13 +111,6 @@ public: virtual String getErrorDesc() { return _errorDesc; } /** - * Sets the last ocurred error. - * @param error Code identifying the last error. - * @param errorDesc String describing the last error. - */ - virtual void setError(SFMError error, String errorDesc) { _error = error; _errorDesc = errorDesc; } - - /** * Open the file with name filename in the given directory for saving. * @param filename the filename * @return pointer to an OutSaveFile, or NULL if an error occured. |