From 664f1f9b6f6ef7d1aaec7d136cb1af7d17532d0d Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Tue, 12 Jul 2016 11:07:05 -0700 Subject: [PATCH] STORM-2132: Remove obsoleted unique_ptr.hpp, use make_shared for pointer allocation. --- indra/newview/lleventpoll.cpp | 4 +++- indra/newview/lleventpoll.h | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/indra/newview/lleventpoll.cpp b/indra/newview/lleventpoll.cpp index 81aa11cf39..b92b6e4588 100644 --- a/indra/newview/lleventpoll.cpp +++ b/indra/newview/lleventpoll.cpp @@ -42,6 +42,8 @@ #include "llsdutil.h" // for ll_pretty_print_sd +#include "boost/make_shared.hpp" + namespace LLEventPolling { namespace Details @@ -302,7 +304,7 @@ namespace Details LLEventPoll::LLEventPoll(const std::string& poll_url, const LLHost& sender): mImpl() { - mImpl = boost::shared_ptr(new LLEventPolling::Details::LLEventPollImpl(sender)); + mImpl = boost::make_shared(sender); mImpl->start(poll_url); } diff --git a/indra/newview/lleventpoll.h b/indra/newview/lleventpoll.h index d305135b18..65766dbb2a 100644 --- a/indra/newview/lleventpoll.h +++ b/indra/newview/lleventpoll.h @@ -27,12 +27,6 @@ #ifndef 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;