Stop using GG_ prefixed macros (#8539)

* Stop using GG_ prefixed macros

GG_ULONGLONG was renamed to PROTOBUF_ULONGLONG some time ago

* Better
pull/8557/head
Yuriy Chernyshov 4 years ago committed by GitHub
parent 952cf14442
commit 28101c3e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      src/google/protobuf/compiler/cpp/cpp_helpers.cc

@ -662,14 +662,7 @@ std::string UInt64ToString(const std::string& macro_prefix, uint64_t number) {
}
std::string DefaultValue(const FieldDescriptor* field) {
switch (field->cpp_type()) {
case FieldDescriptor::CPPTYPE_INT64:
return Int64ToString("GG", field->default_value_int64());
case FieldDescriptor::CPPTYPE_UINT64:
return UInt64ToString("GG", field->default_value_uint64());
default:
return DefaultValue(Options(), field);
}
return DefaultValue(Options(), field);
}
std::string DefaultValue(const Options& options, const FieldDescriptor* field) {

Loading…
Cancel
Save