Skip to content

Commit

Permalink
[GCC] Unreviewed, build fix for Debian 11 after 278666@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=274035

error: ‘auto’ parameter not permitted in this context.

Wrap 'RefPtr' ctor in parenthesis.

* Source/WebCore/accessibility/AXTextMarker.cpp:
(WebCore::AXTextMarker::operator CharacterOffset const):

Canonical link: https://commits.webkit.org/278677@main
  • Loading branch information
dpino committed May 13, 2024
1 parent 56ec886 commit c7adbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/accessibility/AXTextMarker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ AXTextMarker::operator CharacterOffset() const
} else
setNodeIfNeeded();

CharacterOffset result(RefPtr { m_data.node.get() }.get(), m_data.characterStart, m_data.characterOffset);
CharacterOffset result((RefPtr { m_data.node.get() }).get(), m_data.characterStart, m_data.characterOffset);
// When we are at a line wrap and the VisiblePosition is upstream, it means the text marker is at the end of the previous line.
// We use the previous CharacterOffset so that it will match the Range.
if (m_data.affinity == Affinity::Upstream)
Expand Down

0 comments on commit c7adbf8

Please sign in to comment.