Skip to content
Snippets Groups Projects
Commit c0407af8 authored by Rider Linden's avatar Rider Linden
Browse files

STORM-2132: Remove obsoleted unique_ptr.hpp, use make_shared for pointer allocation.

parent c1c9b3d7
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include "llcorehttputil.h" #include "llcorehttputil.h"
#include "lleventfilter.h" #include "lleventfilter.h"
#include "boost/make_shared.hpp"
namespace LLEventPolling namespace LLEventPolling
{ {
namespace Details namespace Details
...@@ -273,7 +275,7 @@ namespace Details ...@@ -273,7 +275,7 @@ namespace Details
LLEventPoll::LLEventPoll(const std::string& poll_url, const LLHost& sender): LLEventPoll::LLEventPoll(const std::string& poll_url, const LLHost& sender):
mImpl() mImpl()
{ {
mImpl = boost::shared_ptr<LLEventPolling::Details::LLEventPollImpl>(new LLEventPolling::Details::LLEventPollImpl(sender)); mImpl = boost::make_shared<LLEventPolling::Details::LLEventPollImpl>(sender);
mImpl->start(poll_url); mImpl->start(poll_url);
} }
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
#ifndef LL_LLEVENTPOLL_H #ifndef LL_LLEVENTPOLL_H
#define LL_LLEVENTPOLL_H #define LL_LLEVENTPOLL_H
#include "boost/move/unique_ptr.hpp"
namespace boost
{
using ::boost::movelib::unique_ptr; // move unique_ptr into the boost namespace.
}
class LLHost; class LLHost;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment