summaryrefslogtreecommitdiffstats
path: root/url
diff options
context:
space:
mode:
authordmichael <dmichael@chromium.org>2014-12-19 10:21:35 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-19 18:22:16 +0000
commit5cbd40a0b42d508fe84e25c617d6905e20980f7b (patch)
tree79f36b2a1b5ec358c66c65f21073ae9ac38db3c6 /url
parente6fb57714996eedf67667bae17bb31e75ef90750 (diff)
downloadchromium_src-5cbd40a0b42d508fe84e25c617d6905e20980f7b.zip
chromium_src-5cbd40a0b42d508fe84e25c617d6905e20980f7b.tar.gz
chromium_src-5cbd40a0b42d508fe84e25c617d6905e20980f7b.tar.bz2
Add "override" to url::RawCanonOutputT::Resize
Currently, the Clang style checker ignores templates. In order to turn it on, we first must fix latent style violations. This CL covers url/ BUG=441916 TBR=brettw Review URL: https://codereview.chromium.org/812583004 Cr-Commit-Position: refs/heads/master@{#309223}
Diffstat (limited to 'url')
-rw-r--r--url/url_canon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/url/url_canon.h b/url/url_canon.h
index 3b9f906..89e3509 100644
--- a/url/url_canon.h
+++ b/url/url_canon.h
@@ -154,7 +154,7 @@ class RawCanonOutputT : public CanonOutputT<T> {
delete[] this->buffer_;
}
- virtual void Resize(int sz) {
+ void Resize(int sz) override {
T* new_buf = new T[sz];
memcpy(new_buf, this->buffer_,
sizeof(T) * (this->cur_len_ < sz ? this->cur_len_ : sz));