diff options
Diffstat (limited to 'webrtc/modules/desktop_capture/screen_capturer_win.cc')
-rw-r--r-- | webrtc/modules/desktop_capture/screen_capturer_win.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webrtc/modules/desktop_capture/screen_capturer_win.cc b/webrtc/modules/desktop_capture/screen_capturer_win.cc index 1f33155656..18be4eb30b 100644 --- a/webrtc/modules/desktop_capture/screen_capturer_win.cc +++ b/webrtc/modules/desktop_capture/screen_capturer_win.cc @@ -10,6 +10,8 @@ #include "webrtc/modules/desktop_capture/screen_capturer.h" +#include <utility> + #include "webrtc/modules/desktop_capture/desktop_capture_options.h" #include "webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h" #include "webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.h" @@ -22,7 +24,7 @@ ScreenCapturer* ScreenCapturer::Create(const DesktopCaptureOptions& options) { new ScreenCapturerWinGdi(options)); if (options.allow_use_magnification_api()) - return new ScreenCapturerWinMagnifier(gdi_capturer.Pass()); + return new ScreenCapturerWinMagnifier(std::move(gdi_capturer)); return gdi_capturer.release(); } |