Skip to content
Snippets Groups Projects
Commit 2aff2b44 authored by Yang Gao's avatar Yang Gao
Browse files

Merge pull request #2678 from vjpai/dont_be_explicit

Remove explicit reference to nullptr
parents f2b2558c c089743f
No related branches found
No related tags found
No related merge requests found
......@@ -249,7 +249,7 @@ bool GetModuleAndMessagePath(const Descriptor* type,
do {
message_path.push_back(path_elem_type);
path_elem_type = path_elem_type->containing_type();
} while (path_elem_type != nullptr);
} while (path_elem_type); // implicit nullptr comparison; don't be explicit
grpc::string file_name = type->file()->name();
static const int proto_suffix_length = strlen(".proto");
if (!(file_name.size() > static_cast<size_t>(proto_suffix_length) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment