commit | 4cf81917421db6cac6762eb8339ae06d3db9572e | [log] [tgz] |
---|---|---|
author | mukesh agrawal <quiche@google.com> | Tue Feb 05 17:29:08 2019 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat Feb 16 00:28:35 2019 +0000 |
tree | 90f494dd4500e97298f68fe89b4165b66e3da048 | |
parent | 0531a75cd36f39630de258f8a77e7dec1e004970 [diff] |
[bt][rfcomm] fix style nit C-style casts are passé. More importantly, though, they're hard to grep for. Remove the legacy cast that I noticed. Bug: None Test: build Change-Id: Ia58fe21927d2734a1681e1a855ed92aa63716dc6
diff --git a/garnet/drivers/bluetooth/lib/rfcomm/session.cc b/garnet/drivers/bluetooth/lib/rfcomm/session.cc index 42b2544..89d5d8b 100644 --- a/garnet/drivers/bluetooth/lib/rfcomm/session.cc +++ b/garnet/drivers/bluetooth/lib/rfcomm/session.cc
@@ -242,8 +242,7 @@ } DLCI dlci = frame->dlci(); - - switch ((FrameType)frame->control()) { + switch (static_cast<FrameType>(frame->control())) { case FrameType::kSetAsynchronousBalancedMode: HandleSABM(dlci); return;