From 15469b47b5c9883636e775a31e44e6b4bc43dccb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 23 Dec 2007 18:12:03 +0000 Subject: SaveFileManager::setError is an internal method; also, pass string to it by-ref not by-value svn-id: r29967 --- common/savefile.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'common/savefile.h') 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() {} @@ -103,13 +110,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 -- cgit v1.2.3