-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up the function naming in TextMeasureCache.h
#42598
Conversation
One name was clearly a human mistake. Make the naming consistent.
@christophpurrer Any chance you could review this? |
Base commit: 6d77d7b |
@sammy-SC has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@@ -141,7 +141,7 @@ inline bool areAttributedStringFragmentsEquivalentLayoutWise( | |||
rhs.parentShadowView.layoutMetrics)); | |||
} | |||
|
|||
inline size_t textAttributesHashLayoutWise( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the human mistake; it's a hash for AttributedString::Fragment
, not for TextAttributes
@@ -171,12 +171,12 @@ inline bool areAttributedStringsEquivalentLayoutWise( | |||
return true; | |||
} | |||
|
|||
inline size_t textAttributedStringHashLayoutWise( | |||
inline size_t attributedStringHashLayoutWise( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the rename for the sake of consistency
Thanks for assigning yourself! Let me know what you think. It's a very trivial change, but I wanted to make it separate so it's clear what is being changed and why. Sorry about the failing lint; is this related to line lengths? Is there a simple way to fix it? Why is "Builds & Tests" failing? |
Summary:
Clean up the function naming in
TextMeasureCache.h
. One name was clearly a human mistake. Make the naming consistent.This is a minor improvement in the context of my multi-PR work on react-native-community/discussions-and-proposals#695.
Changelog:
[INTERNAL] [CHANGE] - Clean up the function naming in
TextMeasureCache.h
Test Plan: