Replace ASSERT(false) by RTC_NOTREACHED().

This cl was produced by

  git grep -l 'ASSERT(false)' |\
    xargs -n1 sed -i 's/ASSERT(false)/RTC_NOTREACHED()/'

followed by additional includes of base/checks.h in affected files,
git cl format to adjust spacing in webrtc/base/transformadapter.cc.
Finally, to make presubmit happy, one unnamed TODO marker was deleted
in that file.

This is a step towards deletion of base/common.h.

BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/2625003003
Cr-Commit-Position: refs/heads/master@{#16009}
This commit is contained in:
nisse
2017-01-11 05:56:46 -08:00
committed by Commit bot
parent 10418acb97
commit c80e741ad0
36 changed files with 156 additions and 126 deletions

View File

@ -12,6 +12,7 @@
#include "webrtc/examples/peerconnection/client/flagdefs.h"
#include "webrtc/examples/peerconnection/client/main_wnd.h"
#include "webrtc/examples/peerconnection/client/peer_connection_client.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/ssladapter.h"
#include "webrtc/base/win32socketinit.h"
#include "webrtc/base/win32socketserver.h"
@ -42,7 +43,7 @@ int PASCAL wWinMain(HINSTANCE instance, HINSTANCE prev_instance,
MainWnd wnd(FLAG_server, FLAG_port, FLAG_autoconnect, FLAG_autocall);
if (!wnd.Create()) {
ASSERT(false);
RTC_NOTREACHED();
return -1;
}