From 6af105993c27504f80160b484106f6b08a7980b2 Mon Sep 17 00:00:00 2001 From: KUDr Date: Sun, 14 Jan 2007 13:21:02 +0000 Subject: (svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8 --- src/newgrf_text.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/newgrf_text.cpp') diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 4a2a10f5b..1d50c0108 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -149,6 +149,15 @@ struct GRFText { 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; -- cgit v1.2.3-54-g00ecf