Skip to content

Commit 1dabf0d

Browse files
bkonyicommit-bot@chromium.org
authored andcommitted
[ VM / dart:io ] Removed usage of std::make_unique as C++14 is not supported in google3
Change-Id: I615bcb89ef2dec2e745a4d321a13a0a131ba7485 Reviewed-on: https://dart-review.googlesource.com/c/83230 Commit-Queue: Ben Konyi <[email protected]> Commit-Queue: Siva Annamalai <[email protected]> Auto-Submit: Ben Konyi <[email protected]> Reviewed-by: Siva Annamalai <[email protected]>
1 parent 3be0d61 commit 1dabf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/bin/security_context_macos.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static SecCertificateRef CreateSecCertificateFromX509(X509* cert) {
6262
if (length < 0) {
6363
return 0;
6464
}
65-
auto deb_cert = std::make_unique<unsigned char[]>(length);
65+
auto deb_cert = std::unique_ptr<unsigned char[]>(new unsigned char[length]);
6666
unsigned char* temp = deb_cert.get();
6767
if (i2d_X509(cert, &temp) != length) {
6868
return NULL;

0 commit comments

Comments
 (0)