diff options
author | Yang Gao <yangg@google.com> | 2015-07-27 15:46:18 -0700 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-07-27 15:46:18 -0700 |
commit | 2aff2b449f22e0eb7995d31a6c137e6a5951d6c6 (patch) | |
tree | bcfa08bffad810d9bea919c19b3175578310b8cf /src | |
parent | f2b2558cc38ea68c070a528ccf612a2eec90ee81 (diff) | |
parent | c089743f49073140fb73dd2ebe6785e82f758120 (diff) |
Merge pull request #2678 from vjpai/dont_be_explicit
Remove explicit reference to nullptr
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/python_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/python_generator.cc b/src/compiler/python_generator.cc index 724b69c703..2982a89fad 100644 --- a/src/compiler/python_generator.cc +++ b/src/compiler/python_generator.cc @@ -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) && |