diff options
author | KUDr <KUDr@openttd.org> | 2007-01-14 13:21:02 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-01-14 13:21:02 +0000 |
commit | 6af105993c27504f80160b484106f6b08a7980b2 (patch) | |
tree | 3d03e5b51e86204e9df37b67b7483a622c3a8c7a /src | |
parent | a63fae4202dbd5f44b5f9b40d94b767fa35e1fe3 (diff) | |
download | openttd-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.cpp | 9 |
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; |