Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Unified Diff: webrtc/modules/audio_processing/agc/agc.h

Issue 1710483002: Replace scoped_ptr with unique_ptr in webrtc/modules/audio_processing/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/agc/agc_manager_direct.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/agc/agc.h
diff --git a/webrtc/modules/audio_processing/agc/agc.h b/webrtc/modules/audio_processing/agc/agc.h
index 08c287f82057c613e3c3b27b9871b9255f35043b..9b6b8556ab95a1a001b7711a834897ed2414dcf9 100644
--- a/webrtc/modules/audio_processing/agc/agc.h
+++ b/webrtc/modules/audio_processing/agc/agc.h
@@ -11,7 +11,8 @@
#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_H_
#define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_AGC_H_
-#include "webrtc/base/scoped_ptr.h"
+#include <memory>
+
#include "webrtc/modules/audio_processing/vad/voice_activity_detector.h"
#include "webrtc/typedefs.h"
@@ -48,8 +49,8 @@ class Agc {
private:
double target_level_loudness_;
int target_level_dbfs_;
- rtc::scoped_ptr<Histogram> histogram_;
- rtc::scoped_ptr<Histogram> inactive_histogram_;
+ std::unique_ptr<Histogram> histogram_;
+ std::unique_ptr<Histogram> inactive_histogram_;
VoiceActivityDetector vad_;
};
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/agc/agc_manager_direct.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698