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 | 96ea43d1b297aebc62a9c4d8e5224bb07d00da03 (patch) | |
tree | 3d03e5b51e86204e9df37b67b7483a622c3a8c7a | |
parent | b9832e10bdee1b782b5355328d1f53b3dd3df510 (diff) | |
download | openttd-96ea43d1b297aebc62a9c4d8e5224bb07d00da03.tar.xz |
(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
-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; |