mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 08:17:40 +00:00
SaveFileManager::setError is an internal method; also, pass string to it by-ref not by-value
svn-id: r29967
This commit is contained in:
parent
f7c8a64c4f
commit
15469b47b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user