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

Unified Diff: webrtc/examples/peerconnection/client/linux/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/linux/main_wnd.h
diff --git a/webrtc/examples/peerconnection/client/linux/main_wnd.h b/webrtc/examples/peerconnection/client/linux/main_wnd.h
index e756fc98c4a6b935b9d1bbf681948c0b00a834b2..3c718577d1024bcd039eddeb97e2736041e1c313 100644
--- a/webrtc/examples/peerconnection/client/linux/main_wnd.h
+++ b/webrtc/examples/peerconnection/client/linux/main_wnd.h
@@ -11,6 +11,7 @@
#ifndef WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_LINUX_MAIN_WND_H_
#define WEBRTC_EXAMPLES_PEERCONNECTION_CLIENT_LINUX_MAIN_WND_H_
+#include <memory>
#include <string>
#include "webrtc/examples/peerconnection/client/main_wnd.h"
@@ -92,7 +93,7 @@ class GtkMainWnd : public MainWindow {
protected:
void SetSize(int width, int height);
- rtc::scoped_ptr<uint8_t[]> image_;
+ std::unique_ptr<uint8_t[]> image_;
int width_;
int height_;
GtkMainWnd* main_wnd_;
@@ -111,9 +112,9 @@ class GtkMainWnd : public MainWindow {
std::string port_;
bool autoconnect_;
bool autocall_;
- rtc::scoped_ptr<VideoRenderer> local_renderer_;
- rtc::scoped_ptr<VideoRenderer> remote_renderer_;
- rtc::scoped_ptr<uint8_t[]> draw_buffer_;
+ std::unique_ptr<VideoRenderer> local_renderer_;
+ std::unique_ptr<VideoRenderer> remote_renderer_;
+ std::unique_ptr<uint8_t[]> draw_buffer_;
int draw_buffer_size_;
};
« no previous file with comments | « webrtc/examples/peerconnection/client/conductor.cc ('k') | webrtc/examples/peerconnection/client/main_wnd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698