Bug 684670 - js\src\vm/Debugger.h(406) : warning C4099: 'JSCompartment' : type name first seen using 'struct' now seen using 'class'. r=jorendorff
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Wed, 07 Sep 2011 16:29:00 +0900
changeset 76641 8a9c10ebbf00795f005b3612fe472f5bd2bf3382
parent 76640 e0e96051ac630357d43fe0757d8e7a697ddb97bf
child 76642 73f8f5071c8bb371d697fdd68083e911432873a4
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersjorendorff
bugs684670
milestone9.0a1
Bug 684670 - js\src\vm/Debugger.h(406) : warning C4099: 'JSCompartment' : type name first seen using 'struct' now seen using 'class'. r=jorendorff
js/src/vm/Debugger.h
--- a/js/src/vm/Debugger.h
+++ b/js/src/vm/Debugger.h
@@ -398,17 +398,17 @@ class Debugger {
   private:
     /* Prohibit copying. */
     Debugger(const Debugger &);
     Debugger & operator=(const Debugger &);
 };
 
 class BreakpointSite {
     friend class js::Breakpoint;
-    friend class ::JSCompartment;
+    friend struct ::JSCompartment;
     friend class js::Debugger;
 
   public:
     JSScript * const script;
     jsbytecode * const pc;
     const JSOp realOpcode;
 
   private:
@@ -455,17 +455,17 @@ class BreakpointSite {
  * Debugger::hasAnyLiveHooks to check for rule 1.
  *
  * Nothing else causes a breakpoint to be retained, so if its script or
  * debugger is collected, the breakpoint is destroyed during GC sweep phase,
  * even if the debugger compartment isn't being GC'd. This is implemented in
  * JSCompartment::sweepBreakpoints.
  */
 class Breakpoint {
-    friend class ::JSCompartment;
+    friend struct ::JSCompartment;
     friend class js::Debugger;
 
   public:
     Debugger * const debugger;
     BreakpointSite * const site;
   private:
     JSObject *handler;
     JSCList debuggerLinks;