mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
Fabric: Removed unnecessary const_cast leftovers
Summary: Trivial. If it compiles, it works. Reviewed By: JoshuaGross Differential Revision: D14146579 fbshipit-source-id: 6f6895d1634709a5bde012850c5df756171320ab
This commit is contained in:
committed by
Facebook Github Bot
parent
25566ef28b
commit
7b62dca921
@@ -30,7 +30,7 @@ SharedShadowNode UIManager::createNode(
|
||||
delegate_->uiManagerDidCreateShadowNode(shadowNode);
|
||||
}
|
||||
|
||||
return std::const_pointer_cast<ShadowNode>(shadowNode);
|
||||
return shadowNode;
|
||||
}
|
||||
|
||||
SharedShadowNode UIManager::cloneNode(
|
||||
@@ -51,7 +51,7 @@ SharedShadowNode UIManager::cloneNode(
|
||||
.children = children,
|
||||
});
|
||||
|
||||
return std::const_pointer_cast<ShadowNode>(clonedShadowNode);
|
||||
return clonedShadowNode;
|
||||
}
|
||||
|
||||
void UIManager::appendChild(
|
||||
|
||||
Reference in New Issue
Block a user