mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
Fix auto_ptr<char[]> by auto_ptr<char*>
This commit is contained in:
@@ -428,7 +428,6 @@ void HTTPSClientSessionTest::testUnknownContentLength()
|
|||||||
assertTrue (ostr.str() == HTTPSTestServer::SMALL_BODY);
|
assertTrue (ostr.str() == HTTPSTestServer::SMALL_BODY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void HTTPSClientSessionTest::testServerAbort()
|
void HTTPSClientSessionTest::testServerAbort()
|
||||||
{
|
{
|
||||||
HTTPSTestServer srv;
|
HTTPSTestServer srv;
|
||||||
|
@@ -50,7 +50,7 @@ namespace
|
|||||||
{
|
{
|
||||||
WebSocket ws(request, response);
|
WebSocket ws(request, response);
|
||||||
#ifndef POCO_ENABLE_CPP11
|
#ifndef POCO_ENABLE_CPP11
|
||||||
std::auto_ptr<char[]> pBuffer(new char[_bufSize]);
|
std::auto_ptr<char*> pBuffer(new char[_bufSize]);
|
||||||
#else
|
#else
|
||||||
std::unique_ptr<char[]> pBuffer(new char[_bufSize]);
|
std::unique_ptr<char[]> pBuffer(new char[_bufSize]);
|
||||||
#endif // POCO_ENABLE_CPP11
|
#endif // POCO_ENABLE_CPP11
|
||||||
|
Reference in New Issue
Block a user