mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-15 09:27:05 +08:00
getContextContainer should be marked as const
Summary: `getContextContainer` should be marked as const so that const instances can call it. Reviewed By: shergin Differential Revision: D14969981 fbshipit-source-id: 8812f24ecf0642a38496580689943fbd43cddad1
This commit is contained in:
committed by
Facebook Github Bot
parent
37bf2ce146
commit
c31602acdc
@@ -15,7 +15,8 @@ ComponentDescriptor::ComponentDescriptor(
|
||||
ContextContainer::Shared const &contextContainer)
|
||||
: eventDispatcher_(eventDispatcher), contextContainer_(contextContainer) {}
|
||||
|
||||
ContextContainer::Shared const &ComponentDescriptor::getContextContainer() {
|
||||
ContextContainer::Shared const &ComponentDescriptor::getContextContainer()
|
||||
const {
|
||||
return contextContainer_;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class ComponentDescriptor {
|
||||
/*
|
||||
* Returns stored instance of `ContextContainer`.
|
||||
*/
|
||||
ContextContainer::Shared const &getContextContainer();
|
||||
ContextContainer::Shared const &getContextContainer() const;
|
||||
|
||||
/*
|
||||
* Returns `componentHandle` associated with particular kind of components.
|
||||
|
||||
Reference in New Issue
Block a user