فهرست منبع

Fixed compile errors from lack of "override" keyword.

Joshua Haberman 5 سال پیش
والد
کامیت
fb12ad7a7f
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/google/protobuf/compiler/mock_code_generator.h
  2. 1 1
      src/google/protobuf/compiler/python/python_generator.h

+ 1 - 1
src/google/protobuf/compiler/mock_code_generator.h

@@ -108,7 +108,7 @@ class MockCodeGenerator : public CodeGenerator {
 
   virtual bool Generate(const FileDescriptor* file,
                         const std::string& parameter, GeneratorContext* context,
-                        std::string* error) const;
+                        std::string* error) const override;
 
   uint64 GetSupportedFeatures() const override;
   void SuppressFeatures(uint64 features);

+ 1 - 1
src/google/protobuf/compiler/python/python_generator.h

@@ -72,7 +72,7 @@ class PROTOC_EXPORT Generator : public CodeGenerator {
   virtual bool Generate(const FileDescriptor* file,
                         const std::string& parameter,
                         GeneratorContext* generator_context,
-                        std::string* error) const;
+                        std::string* error) const override;
 
   uint64 GetSupportedFeatures() const override;