Remove explicit reference to nullptr since this isn't within

grpc namespace and not supported by older compilers. Not sure
why I didn't catch this earlier.
pull/2678/head
Vijay Pai 9 years ago
parent 6284cdb00d
commit c089743f49
  1. 2
      src/compiler/python_generator.cc

@ -249,7 +249,7 @@ bool GetModuleAndMessagePath(const Descriptor* type,
do { do {
message_path.push_back(path_elem_type); message_path.push_back(path_elem_type);
path_elem_type = path_elem_type->containing_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(); grpc::string file_name = type->file()->name();
static const int proto_suffix_length = strlen(".proto"); static const int proto_suffix_length = strlen(".proto");
if (!(file_name.size() > static_cast<size_t>(proto_suffix_length) && if (!(file_name.size() > static_cast<size_t>(proto_suffix_length) &&

Loading…
Cancel
Save