소스 검색

Merge pull request #2732 from AsturaPhoenix/master

const FieldDescriptorCompare
Adam Cozzette 8 년 전
부모
커밋
8387b88cdc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/google/protobuf/compiler/java/java_file.cc

+ 1 - 1
src/google/protobuf/compiler/java/java_file.cc

@@ -65,7 +65,7 @@ namespace java {
 namespace {
 
 struct FieldDescriptorCompare {
-  bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2) {
+  bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2) const {
     if(f1 == NULL) {
       return false;
     }