From 22602ef8900784f4ea2a011c25eaeaf682193dbd Mon Sep 17 00:00:00 2001 From: thegeorg Date: Thu, 14 Dec 2023 04:29:40 +0300 Subject: Fix modernize-use-emplace reported by clang-tidy16 --- library/cpp/testing/unittest/registar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/cpp') diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 580d8040618..312796ccf03 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -947,7 +947,7 @@ public: \ static void AddTest(const char* name, \ const std::function& body, bool forceFork) \ { \ - Tests().push_back([=]{ return MakeHolder(name, body, forceFork); }); \ + Tests().emplace_back([=]{ return MakeHolder(name, body, forceFork); }); \ } \ \ static void AddTest(TTestCaseFactory testCaseFactory) { \ -- cgit v1.3