From 2e96807a7f085e050430e5962322c96e55d126eb Mon Sep 17 00:00:00 2001 From: Eddy Bruel Date: Thu, 13 Sep 2012 23:06:22 +0200 Subject: [PATCH] Bug 791094 - Fix some warnings about inconsistent uses of struct/class; r=sfink --- js/src/frontend/Parser.h | 2 +- js/src/frontend/SharedContext.h | 4 ++-- js/src/jsprvtd.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h index 64eb26298a3..8a08cde4334 100644 --- a/js/src/frontend/Parser.h +++ b/js/src/frontend/Parser.h @@ -39,7 +39,7 @@ struct StmtInfoPC : public StmtInfoBase { typedef HashSet FuncStmtSet; struct Parser; -struct SharedContext; +class SharedContext; typedef Vector DeclVector; diff --git a/js/src/frontend/SharedContext.h b/js/src/frontend/SharedContext.h index e7a4b09a622..14330d75ad1 100644 --- a/js/src/frontend/SharedContext.h +++ b/js/src/frontend/SharedContext.h @@ -26,7 +26,7 @@ namespace frontend { class AnyContextFlags { // This class's data is all private and so only visible to these friends. - friend struct SharedContext; + friend class SharedContext; // True if "use strict"; appears in the body instead of being inherited. bool hasExplicitUseStrict:1; @@ -64,7 +64,7 @@ class AnyContextFlags class FunctionContextFlags { // This class's data is all private and so only visible to these friends. - friend struct FunctionBox; + friend class FunctionBox; // We parsed a yield statement in the function. bool isGenerator:1; diff --git a/js/src/jsprvtd.h b/js/src/jsprvtd.h index 31e1eee90e7..1516c75ac07 100644 --- a/js/src/jsprvtd.h +++ b/js/src/jsprvtd.h @@ -177,7 +177,7 @@ namespace frontend { struct BytecodeEmitter; struct Definition; -struct FunctionBox; +class FunctionBox; struct ObjectBox; struct Token; struct TokenPos;