aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2023-12-14 04:29:40 +0300
committerthegeorg <thegeorg@yandex-team.com>2023-12-14 05:00:47 +0300
commit22602ef8900784f4ea2a011c25eaeaf682193dbd (patch)
tree075c8acc2e85752585f7c546e304d52ca910bbe2 /library/cpp/testing/unittest
parente50247b5e3a3952c4033494b37ed26f59473f472 (diff)
downloadydb-22602ef8900784f4ea2a011c25eaeaf682193dbd.tar.gz
Fix modernize-use-emplace reported by clang-tidy16
Diffstat (limited to 'library/cpp/testing/unittest')
-rw-r--r--library/cpp/testing/unittest/registar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index 580d804061..312796ccf0 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<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) { \