Explorar o código

Changed return type from int32 to bool in function returning a bool

Thomas Karlsson %!s(int64=10) %!d(string=hai) anos
pai
achega
b7996f0929
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/google/protobuf/map.h

+ 1 - 1
src/google/protobuf/map.h

@@ -155,7 +155,7 @@ class LIBPROTOBUF_EXPORT MapKey {
                "MapKey::GetUInt32Value");
                "MapKey::GetUInt32Value");
     return val_.uint32_value_;
     return val_.uint32_value_;
   }
   }
-  int32 GetBoolValue() const {
+  bool GetBoolValue() const {
     TYPE_CHECK(FieldDescriptor::CPPTYPE_BOOL,
     TYPE_CHECK(FieldDescriptor::CPPTYPE_BOOL,
                "MapKey::GetBoolValue");
                "MapKey::GetBoolValue");
     return val_.bool_value_;
     return val_.bool_value_;