commit | d77c829d37808f53692196b92fb838c15df1e4ea | [log] [tgz] |
---|---|---|
author | Sungwoo <pb@hpcnt.com> | Thu Dec 05 02:24:50 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Dec 13 10:22:17 2019 |
tree | 884df53908d379c80c251afe9cd79938f16d1cb4 | |
parent | 9338bbcd90faa2b97dd32f0a11023a9d53a5eb0e [diff] |
Fix incorrect log message in FilterNetworks function. This log should print removed elements in 'networks' which pointer to vector<Network*> really. But it was printing just tailing elements of the vector. For example, assume that there are 4 elements in 'networks', and 1st and 3rd elements are removed. Then 'networks' will be changed like this. <Before> [0] id = 1 [1] id = 2 [2] id = 3 [3] id = 4 <After> [0] id = 2 [1] id = 4 Then this log should print the elements with id=1, id=3 which removed. But currently it is printing the elements with id=3 and id=4 which tailing 2 elements of the vector. It's related with how std::remove_if works. So I replaced it with std::partition. Bug: none Change-Id: Idfdae04f2d321212310bddb4d8742ba2dccc4db9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159060 Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30082}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.