Chromium Code Reviews

Unified Diff: webrtc/modules/desktop_capture/shared_desktop_frame.cc

Issue 2036123002: Add r-value constructor for RefCountedObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « webrtc/base/refcount.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/shared_desktop_frame.cc
diff --git a/webrtc/modules/desktop_capture/shared_desktop_frame.cc b/webrtc/modules/desktop_capture/shared_desktop_frame.cc
index e069a54d0284eabc3b005774569dcbdb2018606a..31142352735de2a235fe637c3d281df5c5321e59 100644
--- a/webrtc/modules/desktop_capture/shared_desktop_frame.cc
+++ b/webrtc/modules/desktop_capture/shared_desktop_frame.cc
@@ -23,7 +23,7 @@ SharedDesktopFrame::~SharedDesktopFrame() {}
std::unique_ptr<SharedDesktopFrame> SharedDesktopFrame::Wrap(
std::unique_ptr<DesktopFrame> desktop_frame) {
return std::unique_ptr<SharedDesktopFrame>(
- new SharedDesktopFrame(new Core(desktop_frame.release())));
+ new SharedDesktopFrame(new Core(std::move(desktop_frame))));
}
SharedDesktopFrame* SharedDesktopFrame::Wrap(DesktopFrame* desktop_frame) {
« no previous file with comments | « webrtc/base/refcount.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine