changeset 5657:b404ae132665 draft

(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
author KUDr <KUDr@openttd.org>
date Sun, 14 Jan 2007 13:21:02 +0000
parents 1751030e1e06
children 407aa599bd6f
files src/newgrf_text.cpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_text.cpp
+++ b/src/newgrf_text.cpp
@@ -149,6 +149,15 @@
 			return ::operator new(size + extra);
 		}
 
+public:
+		/* dummy operator delete to silence VC8:
+		 * 'void *GRFText::operator new(size_t,size_t)' : no matching operator delete found;
+		 *     memory will not be freed if initialization throws an exception */
+		void operator delete(void *p, size_t extra)
+		{
+			return ::operator delete(p);
+		}
+
 	public:
 		GRFText *next;
 		byte langid;