[Scummvm-cvs-logs] CVS: scummvm/common map.h,1.15,1.16

Max Horn fingolfin at users.sourceforge.net
Sun Oct 5 07:16:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv13483

Modified Files:
	map.h 
Log Message:
no need for an explicit error here; rather, the linker will catch any invalid uses if we don't give a body

Index: map.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/map.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- map.h	5 Oct 2003 14:02:37 -0000	1.15
+++ map.h	5 Oct 2003 14:15:31 -0000	1.16
@@ -33,7 +33,7 @@
  *       balanced. Ultimately this template should be reimplemented, e.g. using
  *       a red-black tree. Or if one day using Std C++ lib becomes acceptable,
  *       we can use that.
- * @todo Having unit tests for class map would be very desirable. There are a 
+ * @todo Having unit tests for this class would be very desirable. There are a 
  *       big number of things which can go wrong in this code.
  */
 template <class Key, class Value>
@@ -51,14 +51,9 @@
 	Node *_root;
 	Node *_header;
 
-	Map<Key, Value>(const Map<Key, Value> &map) {
-		error("No copy constructor!");
-		return 0;
-	}
-	Map<Key, Value> &operator =(const Map<Key, Value> &map) {
-		error("No copy operator!");
-		return 0;
-	}
+private:
+	Map<Key, Value>(const Map<Key, Value> &map);
+	Map<Key, Value> &operator =(const Map<Key, Value> &map);
 
 public:
 	class ConstIterator {





More information about the Scummvm-git-logs mailing list