Bug 791094 - Fix some warnings about inconsistent uses of struct/class; r=sfink

This commit is contained in:
Eddy Bruel 2012-09-13 23:06:22 +02:00
parent d9d8826fca
commit 2e96807a7f
3 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ struct StmtInfoPC : public StmtInfoBase {
typedef HashSet<JSAtom *> FuncStmtSet; typedef HashSet<JSAtom *> FuncStmtSet;
struct Parser; struct Parser;
struct SharedContext; class SharedContext;
typedef Vector<Definition *, 16> DeclVector; typedef Vector<Definition *, 16> DeclVector;

View File

@ -26,7 +26,7 @@ namespace frontend {
class AnyContextFlags class AnyContextFlags
{ {
// This class's data is all private and so only visible to these friends. // 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. // True if "use strict"; appears in the body instead of being inherited.
bool hasExplicitUseStrict:1; bool hasExplicitUseStrict:1;
@ -64,7 +64,7 @@ class AnyContextFlags
class FunctionContextFlags class FunctionContextFlags
{ {
// This class's data is all private and so only visible to these friends. // 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. // We parsed a yield statement in the function.
bool isGenerator:1; bool isGenerator:1;

View File

@ -177,7 +177,7 @@ namespace frontend {
struct BytecodeEmitter; struct BytecodeEmitter;
struct Definition; struct Definition;
struct FunctionBox; class FunctionBox;
struct ObjectBox; struct ObjectBox;
struct Token; struct Token;
struct TokenPos; struct TokenPos;