diff options
author | hjk <qtc-committer@nokia.com> | 2009-08-24 14:57:01 (GMT) |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-08-24 15:32:14 (GMT) |
commit | cf354eb2bb24de1076f126c526317ac7e1d9ac4d (patch) | |
tree | 75d721fa5b94a4d15cb9d6d612bd18b868b54ec3 /src/script | |
parent | 5b680a3c2c5e59fe899fa19e4d1c4cb251325f29 (diff) | |
download | Qt-cf354eb2bb24de1076f126c526317ac7e1d9ac4d.zip Qt-cf354eb2bb24de1076f126c526317ac7e1d9ac4d.tar.gz Qt-cf354eb2bb24de1076f126c526317ac7e1d9ac4d.tar.bz2 |
compile fix with namespaced Qt
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/qscriptclass.cpp | 4 | ||||
-rw-r--r-- | src/script/api/qscriptcontext_p.h | 8 | ||||
-rw-r--r-- | src/script/api/qscriptengine_p.h | 4 | ||||
-rw-r--r-- | src/script/api/qscriptvalue.cpp | 4 | ||||
-rw-r--r-- | src/script/api/qscriptvalue_p.h | 4 | ||||
-rw-r--r-- | src/script/bridge/qscriptfunction.cpp | 2 | ||||
-rw-r--r-- | src/script/bridge/qscriptglobalobject.cpp | 5 | ||||
-rw-r--r-- | src/script/bridge/qscriptobject.cpp | 5 | ||||
-rw-r--r-- | src/script/bridge/qscriptqobject.cpp | 9 | ||||
-rw-r--r-- | src/script/bridge/qscriptvariant.cpp | 5 |
10 files changed, 28 insertions, 22 deletions
diff --git a/src/script/api/qscriptclass.cpp b/src/script/api/qscriptclass.cpp index c81677b..9ad5ad6 100644 --- a/src/script/api/qscriptclass.cpp +++ b/src/script/api/qscriptclass.cpp @@ -42,8 +42,6 @@ #include "qscriptclass.h" #include "qscriptstring.h" -QT_BEGIN_NAMESPACE - /*! \since 4.4 \class QScriptClass @@ -131,6 +129,8 @@ QT_BEGIN_NAMESPACE \sa queryProperty() */ +QT_BEGIN_NAMESPACE + class QScriptClassPrivate { Q_DECLARE_PUBLIC(QScriptClass) diff --git a/src/script/api/qscriptcontext_p.h b/src/script/api/qscriptcontext_p.h index e8cc47e..c40f3de 100644 --- a/src/script/api/qscriptcontext_p.h +++ b/src/script/api/qscriptcontext_p.h @@ -55,8 +55,6 @@ #include <QtCore/qobjectdefs.h> -QT_BEGIN_NAMESPACE - namespace JSC { class JSObject; @@ -64,8 +62,7 @@ namespace JSC class ExecState; } -#include "wtf/Platform.h" -#include "JSValue.h" +QT_BEGIN_NAMESPACE class QScriptEnginePrivate; @@ -73,4 +70,7 @@ class QScriptContext; QT_END_NAMESPACE +#include "wtf/Platform.h" +#include "JSValue.h" + #endif diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index 1142fcb..c20589f 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -63,8 +63,6 @@ #include "JSGlobalObject.h" #include "JSValue.h" -QT_BEGIN_NAMESPACE - namespace JSC { class ExecState; @@ -75,6 +73,8 @@ namespace JSC } +QT_BEGIN_NAMESPACE + class QString; class QStringList; class QScriptContext; diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp index 21aebd0..5f11239 100644 --- a/src/script/api/qscriptvalue.cpp +++ b/src/script/api/qscriptvalue.cpp @@ -72,8 +72,6 @@ #include "bridge/qscriptvariant_p.h" #include "bridge/qscriptqobject_p.h" -QT_BEGIN_NAMESPACE - /*! \since 4.3 \class QScriptValue @@ -203,6 +201,8 @@ QT_BEGIN_NAMESPACE #include <QtCore/qnumeric.h> #include <math.h> +QT_BEGIN_NAMESPACE + namespace QScript { diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h index 9773ba0..274586f 100644 --- a/src/script/api/qscriptvalue_p.h +++ b/src/script/api/qscriptvalue_p.h @@ -55,11 +55,11 @@ #include <QtCore/qobjectdefs.h> -QT_BEGIN_NAMESPACE - #include "wtf/Platform.h" #include "JSValue.h" +QT_BEGIN_NAMESPACE + class QString; class QScriptEnginePrivate; diff --git a/src/script/bridge/qscriptfunction.cpp b/src/script/bridge/qscriptfunction.cpp index e87905c..4764f68 100644 --- a/src/script/bridge/qscriptfunction.cpp +++ b/src/script/bridge/qscriptfunction.cpp @@ -59,6 +59,8 @@ ASSERT_CLASS_FITS_IN_CELL(QScript::FunctionWrapper); ASSERT_CLASS_FITS_IN_CELL(QScript::FunctionWithArgWrapper); } +QT_BEGIN_NAMESPACE + namespace QScript { diff --git a/src/script/bridge/qscriptglobalobject.cpp b/src/script/bridge/qscriptglobalobject.cpp index 0a85ffa..c929e12 100644 --- a/src/script/bridge/qscriptglobalobject.cpp +++ b/src/script/bridge/qscriptglobalobject.cpp @@ -45,16 +45,17 @@ #include "../api/qscriptengine.h" #include "../api/qscriptengine_p.h" -QT_BEGIN_NAMESPACE - namespace JSC { +QT_USE_NAMESPACE ASSERT_CLASS_FITS_IN_CELL(QScript::GlobalObject); ASSERT_CLASS_FITS_IN_CELL(QScript::OriginalGlobalObjectProxy); } // namespace JSC +QT_BEGIN_NAMESPACE + namespace QScript { diff --git a/src/script/bridge/qscriptobject.cpp b/src/script/bridge/qscriptobject.cpp index 0bf0b0b..2022baf 100644 --- a/src/script/bridge/qscriptobject.cpp +++ b/src/script/bridge/qscriptobject.cpp @@ -43,14 +43,15 @@ #include "qscriptobject_p.h" #include "private/qobject_p.h" -QT_BEGIN_NAMESPACE - namespace JSC { +//QT_USE_NAMESPACE ASSERT_CLASS_FITS_IN_CELL(QScriptObject); ASSERT_CLASS_FITS_IN_CELL(QScriptObjectPrototype); } +QT_BEGIN_NAMESPACE + // masquerading as JSC::JSObject const JSC::ClassInfo QScriptObject::info = { "Object", 0, 0, 0 }; diff --git a/src/script/bridge/qscriptqobject.cpp b/src/script/bridge/qscriptqobject.cpp index 34e6504..ac540ef 100644 --- a/src/script/bridge/qscriptqobject.cpp +++ b/src/script/bridge/qscriptqobject.cpp @@ -61,10 +61,9 @@ #include "RegExpObject.h" #include "RegExpConstructor.h" -QT_BEGIN_NAMESPACE - namespace JSC { +QT_USE_NAMESPACE ASSERT_CLASS_FITS_IN_CELL(QScript::QObjectPrototype); ASSERT_CLASS_FITS_IN_CELL(QScript::QMetaObjectWrapperObject); ASSERT_CLASS_FITS_IN_CELL(QScript::QMetaObjectPrototype); @@ -72,6 +71,8 @@ ASSERT_CLASS_FITS_IN_CELL(QScript::QtFunction); ASSERT_CLASS_FITS_IN_CELL(QScript::QtPropertyFunction); } +QT_BEGIN_NAMESPACE + namespace QScript { @@ -2209,12 +2210,12 @@ void QObjectData::registerWrapper(QScriptObject *wrapper, } // namespace QScript +QT_END_NAMESPACE + namespace JSC { ASSERT_CLASS_FITS_IN_CELL(QScript::QtFunction); } -QT_END_NAMESPACE - #include "moc_qscriptqobject_p.cpp" diff --git a/src/script/bridge/qscriptvariant.cpp b/src/script/bridge/qscriptvariant.cpp index c7ecadd..c4a152a 100644 --- a/src/script/bridge/qscriptvariant.cpp +++ b/src/script/bridge/qscriptvariant.cpp @@ -49,13 +49,14 @@ #include "PrototypeFunction.h" #include "JSString.h" -QT_BEGIN_NAMESPACE - namespace JSC { +QT_USE_NAMESPACE ASSERT_CLASS_FITS_IN_CELL(QScript::QVariantPrototype); } +QT_BEGIN_NAMESPACE + namespace QScript { |