瀏覽代碼

fix a compile warning

This change fixes the following compiler warning:

warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
huahang 11 年之前
父節點
當前提交
27fcf9bff6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/google/protobuf/generated_message_reflection.h

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

@@ -368,7 +368,7 @@ class LIBPROTOBUF_EXPORT GeneratedMessageReflection : public Reflection {
 
   inline const uint32* GetHasBits(const Message& message) const;
   inline uint32* MutableHasBits(Message* message) const;
-  inline const uint32 GetOneofCase(
+  inline uint32 GetOneofCase(
       const Message& message,
       const OneofDescriptor* oneof_descriptor) const;
   inline uint32* MutableOneofCase(