mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Replace calls to new(). (#243)
* Replace all unavoidable uses of `new` with `std::make_unique` or `std::make_shared`. * Fix some 80-column issues.
This commit is contained in:
committed by
Scott Schurr
parent
ef51128270
commit
d5193a776e
@@ -21,6 +21,7 @@
|
||||
#include <ripple/basics/ResolverAsio.h>
|
||||
#include <beast/asio/IPAddressConversion.h>
|
||||
#include <beast/asio/placeholders.h>
|
||||
#include <beast/cxx14/memory.h>
|
||||
#include <beast/module/asio/AsyncObject.h>
|
||||
#include <beast/threads/WaitableEvent.h>
|
||||
#include <boost/asio.hpp>
|
||||
@@ -299,11 +300,11 @@ public:
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ResolverAsio *ResolverAsio::New (
|
||||
std::unique_ptr<ResolverAsio> ResolverAsio::New (
|
||||
boost::asio::io_service& io_service,
|
||||
beast::Journal journal)
|
||||
{
|
||||
return new ResolverAsioImpl (io_service, journal);
|
||||
return std::make_unique<ResolverAsioImpl> (io_service, journal);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user