Skip to content

Commit

Permalink
ClangTidy fixes for examples/
Browse files Browse the repository at this point in the history
These are manual edits please verify there are no typos.
Feel free to auto-submit if there are no issues.

Bug: webrtc:10410
Change-Id: I41947a24764840ad14b2bcccd99d3212d79c1485
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127628
Reviewed-by: Kári Helgason <[email protected]>
Commit-Queue: Benjamin Wright <[email protected]>
Cr-Commit-Position: refs/heads/master@{#27137}
  • Loading branch information
benjwright authored and Commit Bot committed Mar 14, 2019
1 parent 65cccca commit c6fa6d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/peerconnection/server/peer_channel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
static const char kPeerIdHeader[] = "Pragma: ";

static const char* kRequestPaths[] = {
"/wait", "/sign_out", "/message",
"/wait",
"/sign_out",
"/message",
};

enum RequestPathIndex {
Expand Down Expand Up @@ -127,7 +129,7 @@ void ChannelMember::QueueResponse(const std::string& status,
const std::string& extra_headers,
const std::string& data) {
if (waiting_socket_) {
assert(queue_.size() == 0);
assert(queue_.empty());
assert(waiting_socket_->method() == DataSocket::GET);
bool ok =
waiting_socket_->Send(status, true, content_type, extra_headers, data);
Expand Down

0 comments on commit c6fa6d9

Please sign in to comment.