On 04-Sep-13 4:18 PM, Robert O'Callahan wrote:
I like to put "virtual" on all methods that are virtual, even when it's not
strictly necessary because the method overrides a virtual method of the
parent class.
Other people disagree, especially when the method has MOZ_OVERRIDE on it as
well.
"virtual" on non-overrides, MOZ_OVERRIDE on overrides. MOZ_OVERRIDE
implies virtual, you get a compile error when you put MOZ_OVERRIDE on a
non virtual, so it enforces that you're doing what you think you're
doing, so we should use it.
Chris P.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform