summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-01-14 13:21:02 +0000
committerKUDr <KUDr@openttd.org>2007-01-14 13:21:02 +0000
commit6af105993c27504f80160b484106f6b08a7980b2 (patch)
tree3d03e5b51e86204e9df37b67b7483a622c3a8c7a /src
parenta63fae4202dbd5f44b5f9b40d94b767fa35e1fe3 (diff)
downloadopenttd-6af105993c27504f80160b484106f6b08a7980b2.tar.xz
(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_text.cpp9
1 files changed, 9 insertions, 0 deletions
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;