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 57ed615248
commit 6f2f95a5cd
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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;

View File

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