Skip to content

Commit

Permalink
quic: prefer modernize-make-unique
Browse files Browse the repository at this point in the history
PR-URL: #34692
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gengjiawen authored and sbaayel committed Sep 18, 2023
1 parent dd05409 commit c231e6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/quic/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "uv.h"

#include <algorithm>
#include <memory>
#include <vector>
#include <string>
#include <utility>
Expand Down Expand Up @@ -1621,12 +1622,12 @@ QuicSession::QuicSession(
PushListener(&default_listener_);
set_connection_id_strategy(RandomConnectionIDStrategy);
set_preferred_address_strategy(preferred_address_strategy);
crypto_context_.reset(
new QuicCryptoContext(
crypto_context_ = std::make_unique<QuicCryptoContext>(

this,
secure_context,
side,
options));
options);
application_.reset(SelectApplication(this));

wrap->DefineOwnProperty(
Expand Down

0 comments on commit c231e6f

Please sign in to comment.