Commit b7298de4 authored by eric@webkit.org's avatar eric@webkit.org

Reviewed by Oliver.

        MSVC warns when structs are called classes or vice versa.
        Make all the source refer to JSGlobalData as a class.

        * kjs/CommonIdentifiers.h:
        * kjs/JSGlobalData.h:
        * kjs/Parser.h:
        * kjs/lexer.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@35466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent decb0e87
2008-07-30 Eric Seidel <eric@webkit.org>
Reviewed by Oliver.
MSVC warns when structs are called classes or vice versa.
Make all the source refer to JSGlobalData as a class.
* kjs/CommonIdentifiers.h:
* kjs/JSGlobalData.h:
* kjs/Parser.h:
* kjs/lexer.h:
2008-07-30 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Geoff Garen.
......@@ -70,7 +70,7 @@ namespace KJS {
class CommonIdentifiers : Noncopyable {
private:
CommonIdentifiers(JSGlobalData*);
friend struct JSGlobalData;
friend class JSGlobalData;
public:
const Identifier nullIdentifier;
......
......@@ -52,7 +52,8 @@ namespace KJS {
class UString;
struct HashTable;
struct JSGlobalData : public RefCounted<JSGlobalData> {
class JSGlobalData : public RefCounted<JSGlobalData> {
public:
static PassRefPtr<JSGlobalData> create();
~JSGlobalData();
......
......@@ -59,7 +59,7 @@ namespace KJS {
ParserRefCountedData<DeclarationStacks::FunctionStack>*, bool usesEval, bool needsClosure, int lastLine);
private:
friend struct JSGlobalData;
friend class JSGlobalData;
Parser();
void parse(ExecState*, const UString& sourceURL, int startingLineNumber, PassRefPtr<SourceProvider> source,
......
......@@ -92,7 +92,7 @@ namespace KJS {
SourceRange sourceRange(int openBrace, int closeBrace) { return SourceRange(m_source, openBrace + 1, closeBrace); }
private:
friend struct JSGlobalData;
friend class JSGlobalData;
Lexer(JSGlobalData*);
~Lexer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment