Bug 1438193 - turn Accessible* in AccIterator into const, r=surkov

This commit is contained in:
Tokio Kajitsuka 2018-05-04 22:37:11 +09:00
parent b285cdfbf1
commit 55749ad1e9
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ using namespace mozilla::a11y;
// AccIterator
////////////////////////////////////////////////////////////////////////////////
AccIterator::AccIterator(Accessible* aAccessible,
AccIterator::AccIterator(const Accessible* aAccessible,
filters::FilterFuncPtr aFilterFunc) :
mFilterFunc(aFilterFunc)
{
@ -63,7 +63,7 @@ AccIterator::Next()
////////////////////////////////////////////////////////////////////////////////
// nsAccIterator::IteratorState
AccIterator::IteratorState::IteratorState(Accessible* aParent,
AccIterator::IteratorState::IteratorState(const Accessible* aParent,
IteratorState *mParentState) :
mParent(aParent), mIndex(0), mParentState(mParentState)
{

View File

@ -38,7 +38,7 @@ private:
class AccIterator : public AccIterable
{
public:
AccIterator(Accessible* aRoot, filters::FilterFuncPtr aFilterFunc);
AccIterator(const Accessible* aRoot, filters::FilterFuncPtr aFilterFunc);
virtual ~AccIterator();
/**
@ -54,9 +54,9 @@ private:
struct IteratorState
{
explicit IteratorState(Accessible* aParent, IteratorState* mParentState = nullptr);
explicit IteratorState(const Accessible* aParent, IteratorState* mParentState = nullptr);
Accessible* mParent;
const Accessible* mParent;
int32_t mIndex;
IteratorState* mParentState;
};