aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-12-23 18:12:03 +0000
committerMax Horn2007-12-23 18:12:03 +0000
commit15469b47b5c9883636e775a31e44e6b4bc43dccb (patch)
tree1edc46f9124226a4d20713ea4f7ed2e077d33fad
parentf7c8a64c4f75cf4d5828e0a0a29a64dc0cc579de (diff)
downloadscummvm-rg350-15469b47b5c9883636e775a31e44e6b4bc43dccb.tar.gz
scummvm-rg350-15469b47b5c9883636e775a31e44e6b4bc43dccb.tar.bz2
scummvm-rg350-15469b47b5c9883636e775a31e44e6b4bc43dccb.zip
SaveFileManager::setError is an internal method; also, pass string to it by-ref not by-value
svn-id: r29967
-rw-r--r--common/savefile.h14
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.