From 828718a230c42f6710008cf948b5795e24b3d769 Mon Sep 17 00:00:00 2001 From: Tokio Kajitsuka Date: Sun, 13 May 2018 18:14:29 +0900 Subject: [PATCH] Bug 1438193 - part8: XULTreeItemIterator r=surkov turn Accessible* in XULTreeItemIterator into const --- accessible/base/AccIterator.cpp | 2 +- accessible/base/AccIterator.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/accessible/base/AccIterator.cpp b/accessible/base/AccIterator.cpp index 6d5ca68b94bd..70d0d7ef19fd 100644 --- a/accessible/base/AccIterator.cpp +++ b/accessible/base/AccIterator.cpp @@ -382,7 +382,7 @@ ItemIterator::Next() // XULTreeItemIterator //////////////////////////////////////////////////////////////////////////////// -XULTreeItemIterator::XULTreeItemIterator(XULTreeAccessible* aXULTree, +XULTreeItemIterator::XULTreeItemIterator(const XULTreeAccessible* aXULTree, nsITreeView* aTreeView, int32_t aRowIdx) : mXULTree(aXULTree), mTreeView(aTreeView), mRowCount(-1), diff --git a/accessible/base/AccIterator.h b/accessible/base/AccIterator.h index 588011c1033c..15c3aaf688e7 100644 --- a/accessible/base/AccIterator.h +++ b/accessible/base/AccIterator.h @@ -301,7 +301,7 @@ private: class XULTreeItemIterator : public AccIterable { public: - XULTreeItemIterator(XULTreeAccessible* aXULTree, nsITreeView* aTreeView, + XULTreeItemIterator(const XULTreeAccessible* aXULTree, nsITreeView* aTreeView, int32_t aRowIdx); virtual ~XULTreeItemIterator() { } @@ -312,7 +312,7 @@ private: XULTreeItemIterator(const XULTreeItemIterator&) = delete; XULTreeItemIterator& operator = (const XULTreeItemIterator&) = delete; - XULTreeAccessible* mXULTree; + const XULTreeAccessible* mXULTree; nsITreeView* mTreeView; int32_t mRowCount; int32_t mContainerLevel;