github-actions[bot] commented on code in PR #40110:
URL: https://github.com/apache/doris/pull/40110#discussion_r1738288981
##########
be/src/util/byte_buffer.h:
##########
@@ -39,10 +39,7 @@ struct ByteBuffer : private Allocator<false> {
return Status::OK();
}
- ~ByteBuffer() {
- SCOPED_SWITCH_THREAD_MEM_TRACKER_LIMITER(mem_tracker_);
- Allocator<false>::free(ptr, capacity);
- }
+ ~ByteBuffer() { Allocator<false>::free(ptr, capacity); }
Review Comment:
warning: use '= default' to define a trivial destructor
[modernize-use-equals-default]
```cpp
~ByteBuffer() { Allocator<false>::free(ptr, capacity); }
^
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]