Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions common/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ class PoolingMemoryManager final {
// the destructor may be called at some point in the future.
static bool OwnCustomDestructor(google::protobuf::Arena* ABSL_NONNULL arena,
void* object,
absl::Nonnull<void (*)(void*)> destruct) {
void (*ABSL_NONNULL destruct)(void*)) {
ABSL_DCHECK(destruct != nullptr);
arena->OwnCustomDestructor(object, destruct);
return true;
Expand Down Expand Up @@ -1458,8 +1458,7 @@ class MemoryManager final {
// be called at some point in the future, `false` if will definitely not be
// called. All pooling memory managers return `true` while the reference
// counting memory manager returns `false`.
bool OwnCustomDestructor(void* object,
absl::Nonnull<void (*)(void*)> destruct) {
bool OwnCustomDestructor(void* object, void (*ABSL_NONNULL destruct)(void*)) {
ABSL_DCHECK(destruct != nullptr);
if (arena_ == nullptr) {
return false;
Expand Down