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

Unified Diff: webrtc/modules/audio_device/dummy/file_audio_device_factory.cc

Issue 1942823002: Remove webrtc/base/scoped_ptr.h (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fix additional scoped_ptr uses that had been added Created 4 years, 7 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/modules/audio_device/dummy/file_audio_device_factory.cc
diff --git a/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc b/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc
index 2a6ac1ffe9cdea73f4ca55dbcf81aea35cd1177b..7c6d16f129d0b77a105f4deca0d7bb331a55ad64 100644
--- a/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc
+++ b/webrtc/modules/audio_device/dummy/file_audio_device_factory.cc
@@ -10,6 +10,7 @@
#include "webrtc/modules/audio_device/dummy/file_audio_device_factory.h"
+#include <cstdlib>
#include <cstring>
#include "webrtc/modules/audio_device/dummy/file_audio_device.h"
@@ -26,7 +27,7 @@ FileAudioDevice* FileAudioDeviceFactory::CreateFileAudioDevice(
if (!_isConfigured) {
printf("Was compiled with WEBRTC_DUMMY_AUDIO_PLAY_STATIC_FILE "
"but did not set input/output files to use. Bailing out.\n");
- exit(1);
+ std::exit(1);
}
return new FileAudioDevice(id, _inputAudioFilename, _outputAudioFilename);
}
@@ -45,7 +46,7 @@ void FileAudioDeviceFactory::SetFilenamesToUse(
// Sanity: must be compiled with the right define to run this.
printf("Trying to use dummy file devices, but is not compiled "
"with WEBRTC_DUMMY_FILE_DEVICES. Bailing out.\n");
- exit(1);
+ std::exit(1);
#endif
}
« no previous file with comments | « webrtc/libjingle/xmpp/xmpplogintask_unittest.cc ('k') | webrtc/modules/congestion_controller/include/congestion_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698