SaveFileManager::setError is an internal method; also, pass string to it by-ref not by-value

svn-id: r29967
This commit is contained in:
Max Horn 2007-12-23 18:12:03 +00:00
parent f7c8a64c4f
commit 15469b47b5

View File

@ -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