Commit d64bcab3 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Add override and remove virtual

See
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-override.html
for more on this warning.

Bug: v8:10488
Change-Id: I6805441fa24c80776cf94d18ff389c4c67bb5abd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2186635
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67640}
parent 3c51da6c
......@@ -340,7 +340,7 @@ void EraseIf(Container* container, F f) {
class NullStreambuf : public std::streambuf {
public:
virtual int overflow(int c) {
int overflow(int c) override {
setp(buffer_, buffer_ + sizeof(buffer_));
return (c == traits_type::eof()) ? '\0' : c;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment