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

Unified Diff: webrtc/base/optional_unittest.cc

Issue 1803833002: Stop using some scoped_ptr features that unique_ptr doesn't have (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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/base/optional_unittest.cc
diff --git a/webrtc/base/optional_unittest.cc b/webrtc/base/optional_unittest.cc
index eabf091e17a024924d05c11c1a47ddb5733a10e9..e8c257a02491d2c7985e9da3f4b4e5b744591588 100644
--- a/webrtc/base/optional_unittest.cc
+++ b/webrtc/base/optional_unittest.cc
@@ -65,7 +65,8 @@ class Logger {
void Foo() { Log("Foo()"); }
void Foo() const { Log("Foo() const"); }
static rtc::scoped_ptr<std::vector<std::string>> Setup() {
- auto s = rtc_make_scoped_ptr(new std::vector<std::string>);
+ auto s =
+ rtc::scoped_ptr<std::vector<std::string>>(new std::vector<std::string>);
Logger::log_ = s.get();
tommi 2016/03/15 09:22:09 Wow... Can this just return a vector instead? (mov
kwiberg-webrtc 2016/03/15 09:59:41 Yeah, I was about to send the author a sharply-wor
tommi (sloooow) - chröme 2016/03/15 16:49:00 OK. Btw we shouldn't use auto when it actually ma
kwiberg-webrtc 2016/03/15 18:53:37 Yeah, thanks for catching that. Fixed.
Logger::next_id_ = 0;
return s;

Powered by Google App Engine
This is Rietveld 408576698