GCC: Avoid symbol clash in RenderBuffer
GCC fails to resolve getter for RenderBuffer::Block() because its return type has the same name with the getter method. Rename getter method with the prefix "Get" as guided in the https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/blink-c++.md#Precede-setters-with-the-word-Set_use-bare-words-for-getters "If a getter’s name collides with a type name, prefix it with “Get”." Bug: chromium:819294, webrtc:14089 Change-Id: Ieaa3af27415eb8c39806aa8480897b47fd07baa8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263420 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36982}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
794c54faf0
commit
1e8bb67295
@ -321,7 +321,7 @@ TEST(BlockProcessor, ExternalDelayAppliedCorrectlyWithInitialCaptureCalls) {
|
||||
const absl::optional<DelayEstimate>& /*external_delay*/,
|
||||
RenderBuffer* render_buffer, Block* /*linear_output*/,
|
||||
Block* capture) {
|
||||
const auto& render = render_buffer->Block(0);
|
||||
const auto& render = render_buffer->GetBlock(0);
|
||||
const auto render_view = render.View(/*band=*/0, /*channel=*/0);
|
||||
const auto capture_view = capture->View(/*band=*/0, /*channel=*/0);
|
||||
for (size_t i = 0; i < kBlockSize; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user