Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 883849e

Browse files
author
Ehsan Akhgari
committed
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script: function convert() { echo "Converting $1 to $2..." find . \ ! -wholename "*/.git*" \ ! -wholename "obj-ff-dbg*" \ -type f \ \( -iname "*.cpp" \ -o -iname "*.h" \ -o -iname "*.c" \ -o -iname "*.cc" \ -o -iname "*.idl" \ -o -iname "*.ipdl" \ -o -iname "*.ipdlh" \ -o -iname "*.mm" \) | \ xargs -n 1 sed -i -e "s/\b$1\b/$2/g" } convert MOZ_OVERRIDE override convert MOZ_FINAL final
1 parent 10bf1e3 commit 883849e

2,786 files changed

Lines changed: 21158 additions & 21158 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

accessible/atk/AccessibleWrap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ class AccessibleWrap : public Accessible
5252
virtual ~AccessibleWrap();
5353
void ShutdownAtkObject();
5454

55-
virtual void Shutdown() MOZ_OVERRIDE;
55+
virtual void Shutdown() override;
5656

5757
// return the atk object for this AccessibleWrap
58-
virtual void GetNativeInterface(void** aOutAccessible) MOZ_OVERRIDE;
59-
virtual nsresult HandleAccEvent(AccEvent* aEvent) MOZ_OVERRIDE;
58+
virtual void GetNativeInterface(void** aOutAccessible) override;
59+
virtual nsresult HandleAccEvent(AccEvent* aEvent) override;
6060

6161
AtkObject * GetAtkObject(void);
6262
static AtkObject* GetAtkObject(Accessible* aAccessible);

accessible/atk/ApplicationAccessibleWrap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ class ApplicationAccessibleWrap: public ApplicationAccessible
1919
virtual ~ApplicationAccessibleWrap();
2020

2121
// Accessible
22-
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName) MOZ_OVERRIDE;
23-
virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) MOZ_OVERRIDE;
24-
virtual bool RemoveChild(Accessible* aChild) MOZ_OVERRIDE;
22+
virtual mozilla::a11y::ENameValueFlag Name(nsString& aName) override;
23+
virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) override;
24+
virtual bool RemoveChild(Accessible* aChild) override;
2525

2626
/**
2727
* Return the atk object for app root accessible.
2828
*/
29-
virtual void GetNativeInterface(void** aOutAccessible) MOZ_OVERRIDE;
29+
virtual void GetNativeInterface(void** aOutAccessible) override;
3030
};
3131

3232
} // namespace a11y

accessible/atk/AtkSocketAccessible.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ class AtkSocketAccessible : public AccessibleWrap
4545
AtkSocketAccessible(nsIContent* aContent, DocAccessible* aDoc,
4646
const nsCString& aPlugId);
4747

48-
virtual void Shutdown() MOZ_OVERRIDE;
48+
virtual void Shutdown() override;
4949

50-
virtual void GetNativeInterface(void** aOutAccessible) MOZ_OVERRIDE;
50+
virtual void GetNativeInterface(void** aOutAccessible) override;
5151
};
5252

5353
} // namespace a11y

accessible/atk/RootAccessibleWrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ typedef RootAccessible RootAccessibleWrap;
2020
* It is added into root when the toplevel window is created, and removed
2121
* from root when the toplevel window is destroyed.
2222
*/
23-
class GtkWindowAccessible MOZ_FINAL : public DummyAccessible
23+
class GtkWindowAccessible final : public DummyAccessible
2424
{
2525
public:
2626
explicit GtkWindowAccessible(AtkObject* aAccessible);

accessible/base/AccCollector.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,20 @@ class AccCollector
7171
* Collect embedded objects. Provide quick access to accessible by index and
7272
* vice versa.
7373
*/
74-
class EmbeddedObjCollector MOZ_FINAL : public AccCollector
74+
class EmbeddedObjCollector final : public AccCollector
7575
{
7676
public:
7777
virtual ~EmbeddedObjCollector() { }
7878

7979
public:
80-
virtual int32_t GetIndexAt(Accessible* aAccessible) MOZ_OVERRIDE;
80+
virtual int32_t GetIndexAt(Accessible* aAccessible) override;
8181

8282
protected:
8383
// Make sure it's used by Accessible class only.
8484
explicit EmbeddedObjCollector(Accessible* aRoot) :
8585
AccCollector(aRoot, filters::GetEmbeddedObject) { }
8686

87-
virtual void AppendObject(Accessible* aAccessible) MOZ_OVERRIDE;
87+
virtual void AppendObject(Accessible* aAccessible) override;
8888

8989
friend class Accessible;
9090
};

accessible/base/AccEvent.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class AccStateChangeEvent: public AccEvent
154154

155155
// AccEvent
156156
static const EventGroup kEventGroup = eStateChangeEvent;
157-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
157+
virtual unsigned int GetEventGroups() const override
158158
{
159159
return AccEvent::GetEventGroups() | (1U << eStateChangeEvent);
160160
}
@@ -183,7 +183,7 @@ class AccTextChangeEvent: public AccEvent
183183

184184
// AccEvent
185185
static const EventGroup kEventGroup = eTextChangeEvent;
186-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
186+
virtual unsigned int GetEventGroups() const override
187187
{
188188
return AccEvent::GetEventGroups() | (1U << eTextChangeEvent);
189189
}
@@ -223,7 +223,7 @@ class AccMutationEvent: public AccEvent
223223

224224
// Event
225225
static const EventGroup kEventGroup = eMutationEvent;
226-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
226+
virtual unsigned int GetEventGroups() const override
227227
{
228228
return AccEvent::GetEventGroups() | (1U << eMutationEvent);
229229
}
@@ -253,7 +253,7 @@ class AccHideEvent: public AccMutationEvent
253253

254254
// Event
255255
static const EventGroup kEventGroup = eHideEvent;
256-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
256+
virtual unsigned int GetEventGroups() const override
257257
{
258258
return AccMutationEvent::GetEventGroups() | (1U << eHideEvent);
259259
}
@@ -281,7 +281,7 @@ class AccShowEvent: public AccMutationEvent
281281

282282
// Event
283283
static const EventGroup kEventGroup = eShowEvent;
284-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
284+
virtual unsigned int GetEventGroups() const override
285285
{
286286
return AccMutationEvent::GetEventGroups() | (1U << eShowEvent);
287287
}
@@ -301,7 +301,7 @@ class AccReorderEvent : public AccEvent
301301

302302
// Event
303303
static const EventGroup kEventGroup = eReorderEvent;
304-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
304+
virtual unsigned int GetEventGroups() const override
305305
{
306306
return AccEvent::GetEventGroups() | (1U << eReorderEvent);
307307
}
@@ -354,7 +354,7 @@ class AccCaretMoveEvent: public AccEvent
354354

355355
// AccEvent
356356
static const EventGroup kEventGroup = eCaretMoveEvent;
357-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
357+
virtual unsigned int GetEventGroups() const override
358358
{
359359
return AccEvent::GetEventGroups() | (1U << eCaretMoveEvent);
360360
}
@@ -380,7 +380,7 @@ class AccTextSelChangeEvent : public AccEvent
380380

381381
// AccEvent
382382
static const EventGroup kEventGroup = eTextSelChangeEvent;
383-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
383+
virtual unsigned int GetEventGroups() const override
384384
{
385385
return AccEvent::GetEventGroups() | (1U << eTextSelChangeEvent);
386386
}
@@ -419,7 +419,7 @@ class AccSelChangeEvent : public AccEvent
419419

420420
// AccEvent
421421
static const EventGroup kEventGroup = eSelectionChangeEvent;
422-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
422+
virtual unsigned int GetEventGroups() const override
423423
{
424424
return AccEvent::GetEventGroups() | (1U << eSelectionChangeEvent);
425425
}
@@ -449,7 +449,7 @@ class AccTableChangeEvent : public AccEvent
449449

450450
// AccEvent
451451
static const EventGroup kEventGroup = eTableChangeEvent;
452-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
452+
virtual unsigned int GetEventGroups() const override
453453
{
454454
return AccEvent::GetEventGroups() | (1U << eTableChangeEvent);
455455
}
@@ -479,7 +479,7 @@ class AccVCChangeEvent : public AccEvent
479479

480480
// AccEvent
481481
static const EventGroup kEventGroup = eVirtualCursorChangeEvent;
482-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
482+
virtual unsigned int GetEventGroups() const override
483483
{
484484
return AccEvent::GetEventGroups() | (1U << eVirtualCursorChangeEvent);
485485
}
@@ -509,7 +509,7 @@ class AccObjectAttrChangedEvent: public AccEvent
509509

510510
// AccEvent
511511
static const EventGroup kEventGroup = eObjectAttrChangedEvent;
512-
virtual unsigned int GetEventGroups() const MOZ_OVERRIDE
512+
virtual unsigned int GetEventGroups() const override
513513
{
514514
return AccEvent::GetEventGroups() | (1U << eObjectAttrChangedEvent);
515515
}

accessible/base/AccIterator.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AccIterator : public AccIterable
4343
* Return next accessible complying with filter function. Return the first
4444
* accessible for the first time.
4545
*/
46-
virtual Accessible* Next() MOZ_OVERRIDE;
46+
virtual Accessible* Next() override;
4747

4848
private:
4949
AccIterator();
@@ -89,7 +89,7 @@ class RelatedAccIterator : public AccIterable
8989
/**
9090
* Return next related accessible for the given dependent accessible.
9191
*/
92-
virtual Accessible* Next() MOZ_OVERRIDE;
92+
virtual Accessible* Next() override;
9393

9494
private:
9595
RelatedAccIterator();
@@ -123,7 +123,7 @@ class HTMLLabelIterator : public AccIterable
123123
/**
124124
* Return next label accessible associated with the given element.
125125
*/
126-
virtual Accessible* Next() MOZ_OVERRIDE;
126+
virtual Accessible* Next() override;
127127

128128
private:
129129
HTMLLabelIterator();
@@ -150,7 +150,7 @@ class HTMLOutputIterator : public AccIterable
150150
/**
151151
* Return next output accessible associated with the given element.
152152
*/
153-
virtual Accessible* Next() MOZ_OVERRIDE;
153+
virtual Accessible* Next() override;
154154

155155
private:
156156
HTMLOutputIterator();
@@ -173,7 +173,7 @@ class XULLabelIterator : public AccIterable
173173
/**
174174
* Return next label accessible associated with the given element.
175175
*/
176-
virtual Accessible* Next() MOZ_OVERRIDE;
176+
virtual Accessible* Next() override;
177177

178178
private:
179179
XULLabelIterator();
@@ -196,7 +196,7 @@ class XULDescriptionIterator : public AccIterable
196196
/**
197197
* Return next description accessible associated with the given element.
198198
*/
199-
virtual Accessible* Next() MOZ_OVERRIDE;
199+
virtual Accessible* Next() override;
200200

201201
private:
202202
XULDescriptionIterator();
@@ -234,7 +234,7 @@ class IDRefsIterator : public AccIterable
234234
nsIContent* GetElem(const nsDependentSubstring& aID);
235235

236236
// AccIterable
237-
virtual Accessible* Next() MOZ_OVERRIDE;
237+
virtual Accessible* Next() override;
238238

239239
private:
240240
IDRefsIterator();
@@ -251,13 +251,13 @@ class IDRefsIterator : public AccIterable
251251
/**
252252
* Iterates over related accessible referred by aria-owns.
253253
*/
254-
class ARIAOwnedByIterator MOZ_FINAL : public RelatedAccIterator
254+
class ARIAOwnedByIterator final : public RelatedAccIterator
255255
{
256256
public:
257257
explicit ARIAOwnedByIterator(const Accessible* aDependent);
258258
virtual ~ARIAOwnedByIterator() { }
259259

260-
virtual Accessible* Next() MOZ_OVERRIDE;
260+
virtual Accessible* Next() override;
261261

262262
private:
263263
ARIAOwnedByIterator() = delete;
@@ -271,13 +271,13 @@ class ARIAOwnedByIterator MOZ_FINAL : public RelatedAccIterator
271271
/**
272272
* Iterates over related accessible referred by aria-owns.
273273
*/
274-
class ARIAOwnsIterator MOZ_FINAL : public AccIterable
274+
class ARIAOwnsIterator final : public AccIterable
275275
{
276276
public:
277277
explicit ARIAOwnsIterator(const Accessible* aOwner);
278278
virtual ~ARIAOwnsIterator() { }
279279

280-
virtual Accessible* Next() MOZ_OVERRIDE;
280+
virtual Accessible* Next() override;
281281

282282
private:
283283
ARIAOwnsIterator() = delete;
@@ -299,7 +299,7 @@ class SingleAccIterator : public AccIterable
299299
explicit SingleAccIterator(Accessible* aTarget): mAcc(aTarget) { }
300300
virtual ~SingleAccIterator() { }
301301

302-
virtual Accessible* Next() MOZ_OVERRIDE;
302+
virtual Accessible* Next() override;
303303

304304
private:
305305
SingleAccIterator();
@@ -320,7 +320,7 @@ class ItemIterator : public AccIterable
320320
mContainer(aItemContainer), mAnchor(nullptr) { }
321321
virtual ~ItemIterator() { }
322322

323-
virtual Accessible* Next() MOZ_OVERRIDE;
323+
virtual Accessible* Next() override;
324324

325325
private:
326326
ItemIterator() = delete;
@@ -342,7 +342,7 @@ class XULTreeItemIterator : public AccIterable
342342
int32_t aRowIdx);
343343
virtual ~XULTreeItemIterator() { }
344344

345-
virtual Accessible* Next() MOZ_OVERRIDE;
345+
virtual Accessible* Next() override;
346346

347347
private:
348348
XULTreeItemIterator() = delete;

accessible/base/NotificationController.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TNotification : public Notification
6464
mInstance(aInstance), mCallback(aCallback), mArg(aArg) { }
6565
virtual ~TNotification() { mInstance = nullptr; }
6666

67-
virtual void Process() MOZ_OVERRIDE
67+
virtual void Process() override
6868
{
6969
(mInstance->*mCallback)(mArg);
7070

@@ -85,14 +85,14 @@ class TNotification : public Notification
8585
/**
8686
* Used to process notifications from core for the document accessible.
8787
*/
88-
class NotificationController MOZ_FINAL : public EventQueue,
88+
class NotificationController final : public EventQueue,
8989
public nsARefreshObserver
9090
{
9191
public:
9292
NotificationController(DocAccessible* aDocument, nsIPresShell* aPresShell);
9393

94-
NS_IMETHOD_(MozExternalRefCountType) AddRef(void) MOZ_OVERRIDE;
95-
NS_IMETHOD_(MozExternalRefCountType) Release(void) MOZ_OVERRIDE;
94+
NS_IMETHOD_(MozExternalRefCountType) AddRef(void) override;
95+
NS_IMETHOD_(MozExternalRefCountType) Release(void) override;
9696

9797
NS_DECL_CYCLE_COLLECTION_NATIVE_CLASS(NotificationController)
9898

@@ -203,7 +203,7 @@ class NotificationController MOZ_FINAL : public EventQueue,
203203
NotificationController& operator = (const NotificationController&);
204204

205205
// nsARefreshObserver
206-
virtual void WillRefresh(mozilla::TimeStamp aTime) MOZ_OVERRIDE;
206+
virtual void WillRefresh(mozilla::TimeStamp aTime) override;
207207

208208
private:
209209
/**

accessible/base/SelectionManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using namespace mozilla;
2424
using namespace mozilla::a11y;
2525
using mozilla::dom::Selection;
2626

27-
struct mozilla::a11y::SelData MOZ_FINAL
27+
struct mozilla::a11y::SelData final
2828
{
2929
SelData(Selection* aSel, int32_t aReason) :
3030
mSel(aSel), mReason(aReason) {}

0 commit comments

Comments
 (0)