diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-22 04:26:25 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-23 22:49:59 +0200 |
commit | 9f5800ab81dd33da792477e5451ec4c83b1cc0fb (patch) | |
tree | 72bf30a54169684720eefccd6fbf734947bab9c8 /src/tls_wrap.h | |
parent | b33a87d8cb52d5ea57fe4ecd1498f3136a2ccc11 (diff) | |
download | node-new-9f5800ab81dd33da792477e5451ec4c83b1cc0fb.tar.gz |
src: mark virtual functions with override keyword
Add `override` keywords where appropriate. Makes maintenance easier
because the compiler will shout at you when a base class changes in
an incompatible way.
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index 598288c621..b409e54011 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -52,22 +52,22 @@ class TLSCallbacks : public crypto::SSLWrap<TLSCallbacks>, v8::Handle<v8::Value> unused, v8::Handle<v8::Context> context); - const char* Error(); - int TryWrite(uv_buf_t** bufs, size_t* count); + const char* Error() override; + int TryWrite(uv_buf_t** bufs, size_t* count) override; int DoWrite(WriteWrap* w, uv_buf_t* bufs, size_t count, uv_stream_t* send_handle, - uv_write_cb cb); - void AfterWrite(WriteWrap* w); + uv_write_cb cb) override; + void AfterWrite(WriteWrap* w) override; void DoAlloc(uv_handle_t* handle, size_t suggested_size, - uv_buf_t* buf); + uv_buf_t* buf) override; void DoRead(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf, - uv_handle_type pending); - int DoShutdown(ShutdownWrap* req_wrap, uv_shutdown_cb cb); + uv_handle_type pending) override; + int DoShutdown(ShutdownWrap* req_wrap, uv_shutdown_cb cb) override; void NewSessionDoneCb(); |