Commit ad660438 authored by wfh's avatar wfh Committed by Commit bot

Use static_cast instead of reinterpret_cast in net::ReadHeader.

static_cast should be used when casting within a class hierarchy.

BUG=None

Review URL: https://codereview.chromium.org/1639393002

Cr-Commit-Position: refs/heads/master@{#371855}
parent 39d0fed9
...@@ -132,7 +132,7 @@ static base::DictionaryValue* ReadHeader(base::StringPiece* data) { ...@@ -132,7 +132,7 @@ static base::DictionaryValue* ReadHeader(base::StringPiece* data) {
if (!header->IsType(base::Value::TYPE_DICTIONARY)) if (!header->IsType(base::Value::TYPE_DICTIONARY))
return NULL; return NULL;
return reinterpret_cast<base::DictionaryValue*>(header.release()); return static_cast<base::DictionaryValue*>(header.release());
} }
// kCurrentFileVersion is the version of the CRLSet file format that we // kCurrentFileVersion is the version of the CRLSet file format that we
......
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