Skip to content
Snippets Groups Projects
Commit 14758e0a authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28351: managerimpl: use unique_ptr instead of shared_ptr

parent c9f38b0e
Branches
Tags
No related merge requests found
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include <vector> #include <vector>
#include <set> #include <set>
#include <map> #include <map>
#include <tr1/memory> #include <memory>
#include <pthread.h> #include <pthread.h>
#include "client/client.h" #include "client/client.h"
...@@ -851,14 +851,14 @@ class ManagerImpl { ...@@ -851,14 +851,14 @@ class ManagerImpl {
AudioLayer* audiodriver_; AudioLayer* audiodriver_;
// Main thread // Main thread
std::tr1::shared_ptr<DTMF> dtmfKey_; std::unique_ptr<DTMF> dtmfKey_;
///////////////////// /////////////////////
// Protected by Mutex // Protected by Mutex
///////////////////// /////////////////////
pthread_mutex_t toneMutex_; pthread_mutex_t toneMutex_;
std::tr1::shared_ptr<TelephoneTone> telephoneTone_; std::unique_ptr<TelephoneTone> telephoneTone_;
std::tr1::shared_ptr<AudioFile> audiofile_; std::unique_ptr<AudioFile> audiofile_;
// To handle volume control // To handle volume control
// short speakerVolume_; // short speakerVolume_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment