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

Unified Diff: webrtc/examples/peerconnection/client/main_wnd.h

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 8 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
Index: webrtc/examples/peerconnection/client/main_wnd.h
diff --git a/webrtc/examples/peerconnection/client/main_wnd.h b/webrtc/examples/peerconnection/client/main_wnd.h
index 80db2a5adcf5f2e06ed68f295391e2ff2ff3ca94..03db80d0b6d693b9e28624ef301cfa10ca19b436 100644
--- a/webrtc/examples/peerconnection/client/main_wnd.h
+++ b/webrtc/examples/peerconnection/client/main_wnd.h
@@ -13,6 +13,7 @@
#pragma once
#include <map>
+#include <memory>
#include <string>
#include "webrtc/api/mediastreaminterface.h"
@@ -131,7 +132,7 @@ class MainWnd : public MainWindow {
HWND wnd_;
BITMAPINFO bmi_;
- rtc::scoped_ptr<uint8_t[]> image_;
+ std::unique_ptr<uint8_t[]> image_;
CRITICAL_SECTION buffer_lock_;
rtc::scoped_refptr<webrtc::VideoTrackInterface> rendered_track_;
};
@@ -176,8 +177,8 @@ class MainWnd : public MainWindow {
void HandleTabbing();
private:
- rtc::scoped_ptr<VideoRenderer> local_renderer_;
- rtc::scoped_ptr<VideoRenderer> remote_renderer_;
+ std::unique_ptr<VideoRenderer> local_renderer_;
+ std::unique_ptr<VideoRenderer> remote_renderer_;
UI ui_;
HWND wnd_;
DWORD ui_thread_id_;
« no previous file with comments | « webrtc/examples/peerconnection/client/linux/main_wnd.h ('k') | webrtc/examples/peerconnection/client/peer_connection_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698