[Scummvm-cvs-logs] SF.net SVN: scummvm: [29967] scummvm/trunk/common/savefile.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Dec 23 19:12:06 CET 2007


Revision: 29967
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29967&view=rev
Author:   fingolfin
Date:     2007-12-23 10:12:03 -0800 (Sun, 23 Dec 2007)

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

Modified Paths:
--------------
    scummvm/trunk/common/savefile.h

Modified: scummvm/trunk/common/savefile.h
===================================================================
--- scummvm/trunk/common/savefile.h	2007-12-23 17:27:33 UTC (rev 29966)
+++ scummvm/trunk/common/savefile.h	2007-12-23 18:12:03 UTC (rev 29967)
@@ -81,6 +81,13 @@
 	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 @@
 	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.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list