diff options
Diffstat (limited to 'deps/v8/src/string-stream.h')
-rw-r--r-- | deps/v8/src/string-stream.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/src/string-stream.h b/deps/v8/src/string-stream.h index aa4edffab4..6c4da47508 100644 --- a/deps/v8/src/string-stream.h +++ b/deps/v8/src/string-stream.h @@ -17,7 +17,7 @@ class ByteArray; class StringAllocator { public: - virtual ~StringAllocator() { } + virtual ~StringAllocator() = default; // Allocate a number of bytes. virtual char* allocate(unsigned bytes) = 0; // Allocate a larger number of bytes and copy the old buffer to the new one. @@ -31,7 +31,7 @@ class StringAllocator { // Normal allocator uses new[] and delete[]. class HeapStringAllocator final : public StringAllocator { public: - ~HeapStringAllocator() { DeleteArray(space_); } + ~HeapStringAllocator() override { DeleteArray(space_); } char* allocate(unsigned bytes) override; char* grow(unsigned* bytes) override; @@ -44,7 +44,8 @@ class FixedStringAllocator final : public StringAllocator { public: FixedStringAllocator(char* buffer, unsigned length) : buffer_(buffer), length_(length) {} - ~FixedStringAllocator() override{}; + ~FixedStringAllocator() override = default; + char* allocate(unsigned bytes) override; char* grow(unsigned* bytes) override; |