Commit 7294583
Fix RCTTextLayoutManager nullable conversion
Summary:
The original fix in `RCTTextLayoutManager.mm` used the pattern `[obj UTF8String] != nullptr ? [obj UTF8String] : ""`, but Clang's null analysis still types the first operand as `_Nullable`, so `-Wnullable-to-nonnull-conversion` is still triggered as a hard error under Xcode 26.4 (pika-26.4). Switch to the local-variable pattern that was already used correctly for `RNTMyNativeViewCommon.mm`:
```
const char *renderedUTF8 = [renderedString UTF8String];
... std::string(renderedUTF8 != nullptr ? renderedUTF8 : "") ...
```
Changelog: [Internal]
Differential Revision: D1019207411 parent 16edd89 commit 7294583
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- packages/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
211 | 212 | | |
212 | | - | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments