Browse Source

Merge pull request #2732 from AsturaPhoenix/master

const FieldDescriptorCompare
Adam Cozzette 8 years ago
parent
commit
8387b88cdc
1 changed files with 1 additions and 1 deletions
  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 {
 namespace {
 
 
 struct FieldDescriptorCompare {
 struct FieldDescriptorCompare {
-  bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2) {
+  bool operator ()(const FieldDescriptor* f1, const FieldDescriptor* f2) const {
     if(f1 == NULL) {
     if(f1 == NULL) {
       return false;
       return false;
     }
     }