Skip to content

Commit

Permalink
Fix the Catalyst build after 272187@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=266557
rdar://119784872

Unreviewed build fix.

* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _requiresLegacyTextInputTraits]):
Make the return type explicit because sometimes the compiler is picky about BOOL vs. bool.

Canonical link: https://commits.webkit.org/272193@main
  • Loading branch information
hortont424 authored and whsieh committed Dec 17, 2023
1 parent 07b19e4 commit 8bfb83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6691,7 +6691,7 @@ - (BOOL)_requiresLegacyTextInputTraits
if (_cachedRequiresLegacyTextInputTraits.has_value())
return *_cachedRequiresLegacyTextInputTraits;

_cachedRequiresLegacyTextInputTraits = [&] {
_cachedRequiresLegacyTextInputTraits = [&]() -> BOOL {
if (!self.shouldUseAsyncInteractions)
return YES;

Expand Down

0 comments on commit 8bfb83c

Please sign in to comment.