From da82d1571431dca97b478d4914ab1772c2f41def Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Tue, 28 Jun 2022 10:22:30 -0700 Subject: [PATCH] Mark arena getter const. PiperOrigin-RevId: 457763772 --- upb/upb.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb/upb.hpp b/upb/upb.hpp index 2e4a21beac..e462f43bf9 100644 --- a/upb/upb.hpp +++ b/upb/upb.hpp @@ -73,7 +73,7 @@ class Arena { : ptr_(upb_Arena_Init(initial_block, size, &upb_alloc_global), upb_Arena_Free) {} - upb_Arena* ptr() { return ptr_.get(); } + upb_Arena* ptr() const { return ptr_.get(); } // Allows this arena to be used as a generic allocator. //