Bug 1222172 - fix friend declaration in SVGSwitchElement; r=dholbert

clang-cl warns about this one, saying:

  "unqualified friend declaration referring to type outside of the nearest
  enclosing namespace is a Microsoft extension; add a nested name specifier"

It's not completely obvious to me how this is a Microsoft extension if
GCC and clang both manage to compile it, but explicit is better than
implicit, I suppose, so let's add the :: qualifier.
This commit is contained in:
Nathan Froyd 2015-11-05 14:47:28 -05:00
Родитель 725c0b32de
Коммит a29b448a54
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -21,7 +21,7 @@ typedef SVGGraphicsElement SVGSwitchElementBase;
class SVGSwitchElement final : public SVGSwitchElementBase
{
friend class nsSVGSwitchFrame;
friend class ::nsSVGSwitchFrame;
protected:
friend nsresult (::NS_NewSVGSwitchElement(nsIContent **aResult,
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo));