Skip to content

Commit f928852

Browse files
generatedunixname89002005287564meta-codesync[bot]
authored andcommitted
Fix CQS signal modernize-use-emplace in xplat/fatal/container/test
Differential Revision: D89260082 fbshipit-source-id: bcd163b481906948a6d4be3ef4bd9e7c6d5de74c
1 parent 1648c84 commit f928852

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fatal/container/test/variant_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ FATAL_TEST(variant, variant_vector) {
20692069
v.reserve(1);
20702070
FATAL_EXPECT_EQ(0, v.size());
20712071

2072-
v.push_back(var(allocator, 10));
2072+
v.emplace_back(allocator, 10);
20732073
FATAL_EXPECT_EQ(1, v.size());
20742074
FATAL_EXPECT_TRUE(v[0].is_of<int>());
20752075
FATAL_EXPECT_EQ(10, (v[0].get<int>()));
@@ -2379,7 +2379,7 @@ FATAL_TEST(variant, container_assignment) {
23792379
VECTOR v1(allocator);
23802380
v1.reserve(1);
23812381

2382-
v1.push_back(VAR(allocator, 10));
2382+
v1.emplace_back(allocator, 10);
23832383
v1.emplace_back(allocator, 5.6);
23842384
v1.resize(3);
23852385
v1[2] = VAR(allocator, test_string("HELLO, WORLD", allocator));

0 commit comments

Comments
 (0)