github-actions[bot] commented on code in PR #34653: URL: https://github.com/apache/doris/pull/34653#discussion_r1630716295
########## be/src/vec/sink/vdata_stream_sender.h: ########## @@ -275,11 +273,7 @@ class PipChannel final : public Channel<pipeline::ExchangeSinkLocalState> { ch_roll_pb_block(); } - ~PipChannel() override { - if (Channel<pipeline::ExchangeSinkLocalState>::_ch_cur_pb_block) { - delete Channel<pipeline::ExchangeSinkLocalState>::_ch_cur_pb_block; - } - } + ~PipChannel() override { delete Channel<pipeline::ExchangeSinkLocalState>::_ch_cur_pb_block; } Review Comment: warning: use '= default' to define a trivial destructor [modernize-use-equals-default] ```cpp ~PipChannel() override { delete Channel<pipeline::ExchangeSinkLocalState>::_ch_cur_pb_block; } ^ ``` -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org