`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:
Joshua Gross 2019-04-19 02:22:59 -07:00 коммит произвёл Facebook Github Bot
Родитель 37bf2ce146
Коммит c31602acdc
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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.