mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fabric: Fixing small nit in ParagraphComponentDescriptor
Summary: Trivial. `measureCache_` is unique pointer here. It cannot be `nullptr`. Reviewed By: JoshuaGross Differential Revision: D17200950 fbshipit-source-id: dc267eb6545a10322cc2f02690f90c6a50366f0e
This commit is contained in:
committed by
Facebook Github Bot
parent
50c318fb04
commit
862bd2fa2a
@@ -52,8 +52,7 @@ class ParagraphComponentDescriptor final
|
||||
|
||||
// `ParagraphShadowNode` uses this to cache the results of text rendering
|
||||
// measurements.
|
||||
paragraphShadowNode->setMeasureCache(
|
||||
measureCache_ ? measureCache_.get() : nullptr);
|
||||
paragraphShadowNode->setMeasureCache(measureCache_.get());
|
||||
|
||||
paragraphShadowNode->dirtyLayout();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user