Skip to content

Commit

Permalink
Fix modernize-use-emplace reported by clang-tidy16
Browse files Browse the repository at this point in the history
  • Loading branch information
georgthegreat committed Dec 14, 2023
1 parent b4ab4d6 commit 2eeb854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/cpp/testing/unittest/registar.h
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ public: \
static void AddTest(const char* name, \
const std::function<void(NUnitTest::TTestContext&)>& body, bool forceFork) \
{ \
Tests().push_back([=]{ return MakeHolder<NUnitTest::TBaseTestCase>(name, body, forceFork); }); \
Tests().emplace_back([=]{ return MakeHolder<NUnitTest::TBaseTestCase>(name, body, forceFork); }); \
} \
\
static void AddTest(TTestCaseFactory testCaseFactory) { \
Expand Down

0 comments on commit 2eeb854

Please sign in to comment.