Replace boost::shared_ptr with std in voice classes
parent
b5c9a30e3d
commit
ae7f7cd670
|
|
@ -198,7 +198,7 @@ namespace LLError
|
|||
};
|
||||
|
||||
/**
|
||||
* @NOTE: addRecorder() and removeRecorder() uses the boost::shared_ptr to allow for shared ownership
|
||||
* @NOTE: addRecorder() and removeRecorder() uses the std::shared_ptr to allow for shared ownership
|
||||
* while still ensuring that the allocated memory is eventually freed
|
||||
*/
|
||||
LL_COMMON_API void addRecorder(RecorderPtr);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@
|
|||
#include "llsettingsdaycycle.h"
|
||||
#include "llerror.h"
|
||||
#include <algorithm>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include "lltrace.h"
|
||||
#include "llfasttimer.h"
|
||||
#include "v3colorutil.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
#include "llsettingswater.h"
|
||||
#include <algorithm>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include "lltrace.h"
|
||||
#include "llfasttimer.h"
|
||||
#include "v3colorutil.h"
|
||||
|
|
|
|||
|
|
@ -54,8 +54,6 @@
|
|||
|
||||
#include "llregioninfomodel.h"
|
||||
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
#include "llatmosphere.h"
|
||||
#include "llagent.h"
|
||||
#include "roles_constants.h"
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@
|
|||
#include "llcorehttputil.h"
|
||||
#include "lleventfilter.h"
|
||||
|
||||
#include "boost/make_shared.hpp"
|
||||
|
||||
namespace LLEventPolling
|
||||
{
|
||||
namespace Details
|
||||
|
|
|
|||
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include "llfloatereditenvironmentbase.h"
|
||||
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
// libs
|
||||
#include "llnotifications.h"
|
||||
#include "llnotificationsutil.h"
|
||||
|
|
|
|||
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
#include "llfloaterfixedenvironment.h"
|
||||
|
||||
#include <boost/make_shared.hpp>
|
||||
|
||||
// libs
|
||||
#include "llbutton.h"
|
||||
#include "llnotifications.h"
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@
|
|||
#include "llvovolume.h"
|
||||
#include "lldrawable.h"
|
||||
#include "llvoavatar.h"
|
||||
//boost
|
||||
#include "boost/make_shared.hpp"
|
||||
|
||||
//...........
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
#include <deque>
|
||||
#include <boost/iterator/filter_iterator.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <boost/make_shared.hpp> // boost::make_shared
|
||||
|
||||
class LLMessageSystem;
|
||||
class LLViewerTexture;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include "lltrace.h"
|
||||
#include "llfasttimer.h"
|
||||
#include "v3colorutil.h"
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ class LLVoiceP2PIncomingCallInterface
|
|||
virtual void declineInvite() = 0;
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<LLVoiceP2PIncomingCallInterface> LLVoiceP2PIncomingCallInterfacePtr;
|
||||
typedef std::shared_ptr<LLVoiceP2PIncomingCallInterface> LLVoiceP2PIncomingCallInterfacePtr;
|
||||
|
||||
//////////////////////////////////
|
||||
/// @class LLVoiceModuleInterface
|
||||
|
|
|
|||
|
|
@ -4973,7 +4973,7 @@ void LLVivoxVoiceClient::hangup() { leaveChannel(); }
|
|||
|
||||
LLVoiceP2PIncomingCallInterfacePtr LLVivoxVoiceClient::getIncomingCallInterface(const LLSD &voice_call_info)
|
||||
{
|
||||
return boost::make_shared<LLVivoxVoiceP2PIncomingCall>(voice_call_info);
|
||||
return std::make_shared<LLVivoxVoiceP2PIncomingCall>(voice_call_info);
|
||||
}
|
||||
|
||||
bool LLVivoxVoiceClient::answerInvite(const std::string &sessionHandle)
|
||||
|
|
|
|||
|
|
@ -1964,8 +1964,8 @@ bool LLWebRTCVoiceClient::estateSessionState::processConnectionStates()
|
|||
|
||||
for (auto &connection : mWebRTCConnections)
|
||||
{
|
||||
boost::shared_ptr<LLVoiceWebRTCSpatialConnection> spatialConnection =
|
||||
boost::static_pointer_cast<LLVoiceWebRTCSpatialConnection>(connection);
|
||||
std::shared_ptr<LLVoiceWebRTCSpatialConnection> spatialConnection =
|
||||
std::static_pointer_cast<LLVoiceWebRTCSpatialConnection>(connection);
|
||||
|
||||
LLUUID regionID = spatialConnection.get()->getRegionID();
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class LLWebRTCProtocolParser;
|
|||
|
||||
class LLAvatarName;
|
||||
class LLVoiceWebRTCConnection;
|
||||
typedef boost::shared_ptr<LLVoiceWebRTCConnection> connectionPtr_t;
|
||||
typedef std::shared_ptr<LLVoiceWebRTCConnection> connectionPtr_t;
|
||||
|
||||
extern const std::string WEBRTC_VOICE_SERVER_TYPE;
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ public:
|
|||
bool mIsModeratorMuted;
|
||||
LLUUID mRegion;
|
||||
};
|
||||
typedef boost::shared_ptr<participantState> participantStatePtr_t;
|
||||
typedef std::shared_ptr<participantState> participantStatePtr_t;
|
||||
|
||||
participantStatePtr_t findParticipantByID(const std::string &channelID, const LLUUID &id);
|
||||
participantStatePtr_t addParticipantByID(const std::string& channelID, const LLUUID &id, const LLUUID& region);
|
||||
|
|
@ -265,10 +265,10 @@ public:
|
|||
class sessionState
|
||||
{
|
||||
public:
|
||||
typedef boost::shared_ptr<sessionState> ptr_t;
|
||||
typedef boost::weak_ptr<sessionState> wptr_t;
|
||||
typedef std::shared_ptr<sessionState> ptr_t;
|
||||
typedef std::weak_ptr<sessionState> wptr_t;
|
||||
|
||||
typedef boost::function<void(const ptr_t &)> sessionFunc_t;
|
||||
typedef std::function<void(const ptr_t &)> sessionFunc_t;
|
||||
|
||||
static void addSession(const std::string &channelID, ptr_t& session);
|
||||
virtual ~sessionState();
|
||||
|
|
@ -336,7 +336,7 @@ public:
|
|||
sessionFunc_t func);
|
||||
};
|
||||
|
||||
typedef boost::shared_ptr<sessionState> sessionStatePtr_t;
|
||||
typedef std::shared_ptr<sessionState> sessionStatePtr_t;
|
||||
typedef std::map<std::string, sessionStatePtr_t> sessionMap;
|
||||
|
||||
class estateSessionState : public sessionState
|
||||
|
|
@ -577,7 +577,7 @@ class LLVoiceWebRTCStats : public LLSingleton<LLVoiceWebRTCStats>
|
|||
class LLVoiceWebRTCConnection :
|
||||
public llwebrtc::LLWebRTCSignalingObserver,
|
||||
public llwebrtc::LLWebRTCDataObserver,
|
||||
public boost::enable_shared_from_this<LLVoiceWebRTCConnection>
|
||||
public std::enable_shared_from_this<LLVoiceWebRTCConnection>
|
||||
{
|
||||
public:
|
||||
LLVoiceWebRTCConnection(const LLUUID ®ionID, const std::string &channelID);
|
||||
|
|
|
|||
Loading…
Reference in New Issue