소스 검색

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;