mirror of https://github.com/OpenTTD/OpenTTD
(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
parent
b9832e10bd
commit
96ea43d1b2
|
@ -149,6 +149,15 @@ struct GRFText {
|
||||||
return ::operator new(size + extra);
|
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:
|
public:
|
||||||
GRFText *next;
|
GRFText *next;
|
||||||
byte langid;
|
byte langid;
|
||||||
|
|
Loading…
Reference in New Issue