Skip to content

Commit 1f7361f

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Fix CQS signal modernize-use-emplace in fbcode/quic/api
Differential Revision: D82519232 fbshipit-source-id: 036baa9d7876ea3bd15f5025449e30b0ec8bbe1d
1 parent f955d12 commit 1f7361f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

quic/api/test/QuicTransportBaseTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4216,8 +4216,7 @@ TEST_P(QuicTransportImplTestBase, HandleKnobCallbacks) {
42164216
BufPtr buf(folly::IOBuf::create(data.size()));
42174217
memcpy(buf->writableData(), data.data(), data.size());
42184218
buf->append(data.size());
4219-
conn->pendingEvents.knobs.emplace_back(
4220-
KnobFrame(knobSpace, knobId, std::move(buf)));
4219+
conn->pendingEvents.knobs.emplace_back(knobSpace, knobId, std::move(buf));
42214220

42224221
EXPECT_CALL(connCallback, onKnobMock(knobSpace, knobId, _))
42234222
.WillOnce(Invoke([](Unused, Unused, Unused) { /* do nothing */ }));

quic/api/test/QuicTransportTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ void verifyCorrectness(
252252
BufQueue retxBufCombined;
253253
std::vector<StreamBuffer> rtxCopy;
254254
for (auto& itr : stream->retransmissionBuffer) {
255-
rtxCopy.push_back(StreamBuffer(
255+
rtxCopy.emplace_back(
256256
folly::IOBuf::copyBuffer(itr.second->data.getHead()->getRange()),
257257
itr.second->offset,
258-
itr.second->eof));
258+
itr.second->eof);
259259
}
260260
std::sort(rtxCopy.begin(), rtxCopy.end(), [](auto& s1, auto& s2) {
261261
return s1.offset < s2.offset;

0 commit comments

Comments
 (0)