diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 23:36:06 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 23:36:06 +0000 |
commit | e7ee68f7ea8010f91bb3b0781b7a48a1125b588e (patch) | |
tree | 547a75a4558c45dbe0095533858f9fbaa44e411a /url | |
parent | 0d78ec0e128c1e2b16ff8a5b8cc20d5368f3d5a3 (diff) | |
download | chromium_src-e7ee68f7ea8010f91bb3b0781b7a48a1125b588e.zip chromium_src-e7ee68f7ea8010f91bb3b0781b7a48a1125b588e.tar.gz chromium_src-e7ee68f7ea8010f91bb3b0781b7a48a1125b588e.tar.bz2 |
We have Component::reset(), so use it.
BUG=none
TEST=none
R=brettw@chromium.org
Review URL: https://codereview.chromium.org/227483013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url')
-rw-r--r-- | url/url_canon_filesystemurl.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/url/url_canon_filesystemurl.cc b/url/url_canon_filesystemurl.cc index 7f1d393..225e109 100644 --- a/url/url_canon_filesystemurl.cc +++ b/url/url_canon_filesystemurl.cc @@ -25,10 +25,10 @@ bool DoCanonicalizeFileSystemURL(const CHAR* spec, CanonOutput* output, url_parse::Parsed* new_parsed) { // filesystem only uses {scheme, path, query, ref} -- clear the rest. - new_parsed->username = url_parse::Component(); - new_parsed->password = url_parse::Component(); - new_parsed->host = url_parse::Component(); - new_parsed->port = url_parse::Component(); + new_parsed->username.reset(); + new_parsed->password.reset(); + new_parsed->host.reset(); + new_parsed->port.reset(); const url_parse::Parsed* inner_parsed = parsed.inner_parsed(); url_parse::Parsed new_inner_parsed; |