Mark virtual overridden functions as MOZ_OVERRIDE in graphics; r=jrmuizel

RESOLVED FIXED in mozilla37

Status

()

defect
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Ehsan, Assigned: Ehsan)

Tracking

unspecified
mozilla37
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

No description provided.
Assignee: nobody → ehsan
Attachment #8544782 - Flags: review?(jmuizelaar)
Attachment #8544782 - Flags: review?(jmuizelaar) → review+
https://hg.mozilla.org/mozilla-central/rev/c8bed3614b4e
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Comment on attachment 8544782 [details] [diff] [review]
Mark virtual overridden functions as MOZ_OVERRIDE in graphics

>diff --git a/gfx/gl/GLContextCGL.h b/gfx/gl/GLContextCGL.h
> class GLContextCGL : public GLContext
> {
[...]
> public:
>-    MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(GLContextCGL)
>+    MOZ_DECLARE_REFCOUNTED_VIRTUAL_TYPENAME(GLContextCGL, MOZ_OVERRIDE)
                                                          ^^^^^^^^^^^^^^
We need this exact same fix in GLContextGLX and GLContextWGL (the two remaining GLContext subclasses that lack this annotation).

I just pushed this same tweak to those classes, as a followup commit for this bug:
  https://hg.mozilla.org/integration/mozilla-inbound/rev/42755ce4d13f
You need to log in before you can comment on or make changes to this bug.