Merge pull request #1174 from BenLubar/auto-ptr-deprecated

auto_ptr is deprecated
develop
Lethosor 2017-11-23 11:56:12 -05:00 committed by GitHub
commit 30d17398c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -261,7 +261,7 @@ void ServerConnection::threadFn()
break;
}
std::auto_ptr<uint8_t> buf(new uint8_t[header.size]);
std::unique_ptr<uint8_t[]> buf(new uint8_t[header.size]);
if (!readFullBuffer(socket, buf.get(), header.size))
{