projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modernize use of std::make_unique
[folly.git]
/
folly
/
io
/
async
/
AsyncSSLSocket.cpp
diff --git
a/folly/io/async/AsyncSSLSocket.cpp
b/folly/io/async/AsyncSSLSocket.cpp
index 3a7562dcf80d1e959e88ad1a2beb445211551c87..4bb8a9b43525a37d0f80d95d20b4f357f365003b 100644
(file)
--- a/
folly/io/async/AsyncSSLSocket.cpp
+++ b/
folly/io/async/AsyncSSLSocket.cpp
@@
-24,6
+24,7
@@
#include <fcntl.h>
#include <sys/types.h>
#include <chrono>
#include <fcntl.h>
#include <sys/types.h>
#include <chrono>
+#include <memory>
#include <folly/Bits.h>
#include <folly/Format.h>
#include <folly/Bits.h>
#include <folly/Format.h>
@@
-1716,7
+1717,7
@@
int AsyncSSLSocket::sslVerifyCallback(
void AsyncSSLSocket::enableClientHelloParsing() {
parseClientHello_ = true;
void AsyncSSLSocket::enableClientHelloParsing() {
parseClientHello_ = true;
- clientHelloInfo_
.reset(new ssl::ClientHelloInfo()
);
+ clientHelloInfo_
= std::make_unique<ssl::ClientHelloInfo>(
);
}
void AsyncSSLSocket::resetClientHelloParsing(SSL *ssl) {
}
void AsyncSSLSocket::resetClientHelloParsing(SSL *ssl) {