Get rid of the manual destructor in AudioCodingModuleImpl

By converting three raw pointers to scoped_ptrs, we can eliminate the
need for a manually-defined destructor, and generally sleep better at
night.

R=henrik.lundin@webrtc.org

Review URL: https://codereview.webrtc.org/1310213003 .

Cr-Commit-Position: refs/heads/master@{#9776}
This commit is contained in:
Karl Wiberg
2015-08-25 11:48:23 +02:00
parent 87a8fbbf37
commit b6cac8f5ef
3 changed files with 40 additions and 52 deletions

View File

@ -102,7 +102,7 @@ class AudioCodingModule {
static AudioCodingModule* Create(int id);
static AudioCodingModule* Create(int id, Clock* clock);
static AudioCodingModule* Create(const Config& config);
virtual ~AudioCodingModule() {};
virtual ~AudioCodingModule() = default;
///////////////////////////////////////////////////////////////////////////
// Utility functions