mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Bug 1438193 - turn Accessible* in AccIterator into const, r=surkov
This commit is contained in:
parent
b285cdfbf1
commit
55749ad1e9
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user