mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
Codechange: use default virtual destructors over empty destructors
This commit is contained in:
@@ -44,7 +44,7 @@ typedef bool (ScriptAsyncModeProc)();
|
||||
class SimpleCountedObject {
|
||||
public:
|
||||
SimpleCountedObject() : ref_count(0) {}
|
||||
virtual ~SimpleCountedObject() {}
|
||||
virtual ~SimpleCountedObject() = default;
|
||||
|
||||
inline void AddRef() { ++this->ref_count; }
|
||||
void Release();
|
||||
|
||||
Reference in New Issue
Block a user