Tweak return types for GetSupportedFeatures to unit64_t.

pull/7593/head
Thomas Van Lenten 5 years ago
parent 7cb5597013
commit b9cf3866c5
  1. 2
      src/google/protobuf/compiler/csharp/csharp_generator.cc
  2. 2
      src/google/protobuf/compiler/csharp/csharp_generator.h
  3. 2
      src/google/protobuf/compiler/objectivec/objectivec_generator.h
  4. 2
      src/google/protobuf/compiler/ruby/ruby_generator.h

@ -51,7 +51,7 @@ namespace csharp {
Generator::Generator() {}
Generator::~Generator() {}
uint64 Generator::GetSupportedFeatures() const {
uint64_t Generator::GetSupportedFeatures() const {
return CodeGenerator::Feature::FEATURE_PROTO3_OPTIONAL;
}

@ -57,7 +57,7 @@ class PROTOC_EXPORT Generator : public CodeGenerator {
const string& parameter,
GeneratorContext* generator_context,
string* error) const override;
uint64 GetSupportedFeatures() const override;
uint64_t GetSupportedFeatures() const override;
};
} // namespace csharp

@ -67,7 +67,7 @@ class PROTOC_EXPORT ObjectiveCGenerator : public CodeGenerator {
GeneratorContext* context,
string* error) const override;
uint64 GetSupportedFeatures() const override {
uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};

@ -52,7 +52,7 @@ class PROTOC_EXPORT Generator : public CodeGenerator {
bool Generate(const FileDescriptor* file, const string& parameter,
GeneratorContext* generator_context,
string* error) const override;
uint64 GetSupportedFeatures() const override {
uint64_t GetSupportedFeatures() const override {
return FEATURE_PROTO3_OPTIONAL;
}
};

Loading…
Cancel
Save