[Avida-SVN] r2423 - development/source/tools

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Tue Mar 4 15:48:22 PST 2008


Author: brysonda
Date: 2008-03-04 18:48:22 -0500 (Tue, 04 Mar 2008)
New Revision: 2423

Modified:
   development/source/tools/cString.h
Log:
Remove virtual qualifier on ~cString() to reduce unnecessary vptr overhead in all cString instances.

Modified: development/source/tools/cString.h
===================================================================
--- development/source/tools/cString.h	2008-03-04 21:25:57 UTC (rev 2422)
+++ development/source/tools/cString.h	2008-03-04 23:48:22 UTC (rev 2423)
@@ -164,7 +164,7 @@
   }
   cString(const cString& in) { CopyString(in); }
 
-  virtual ~cString() { if (value->RemoveRef() == 0) delete value; }
+  ~cString() { if (value->RemoveRef() == 0) delete value; }
 
 
   // Cast to const char *




More information about the Avida-cvs mailing list