github-actions[bot] commented on code in PR #38165: URL: https://github.com/apache/doris/pull/38165#discussion_r1685231381
########## be/test/olap/segcompaction_test.cpp: ########## @@ -47,14 +46,12 @@ namespace doris { using namespace ErrorCode; static const uint32_t MAX_PATH_LEN = 1024; -static std::unique_ptr<StorageEngine> l_engine; +static StorageEngine* l_engine; static const std::string lTestDir = "./data_test/data/segcompaction_test"; class SegCompactionTest : public testing::Test { public: - SegCompactionTest() : _data_dir(std::make_unique<DataDir>(lTestDir)) { - _data_dir->update_capacity(); - } + SegCompactionTest() {} Review Comment: warning: use '= default' to define a trivial default constructor [modernize-use-equals-default] ```suggestion SegCompactionTest() = default; ``` -- 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