summaryrefslogtreecommitdiffstats
path: root/tdehtml/ecma/kjs_binding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdehtml/ecma/kjs_binding.cpp')
-rw-r--r--tdehtml/ecma/kjs_binding.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/tdehtml/ecma/kjs_binding.cpp b/tdehtml/ecma/kjs_binding.cpp
index 7e545a5a4..c3dd39255 100644
--- a/tdehtml/ecma/kjs_binding.cpp
+++ b/tdehtml/ecma/kjs_binding.cpp
@@ -1,4 +1,3 @@
-// -*- c-basic-offset: 2 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 1999-2003 Harri Porten (porten@kde.org)
@@ -51,7 +50,7 @@ Value DOMObject::get(ExecState *exec, const Identifier &p) const
}
catch (DOM::DOMException e) {
// ### translate code into readable string ?
- // ### oh, and s/QString/i18n or I18N_NOOP (the code in kjs uses I18N_NOOP... but where is it translated ?)
+ // ### oh, and s/TQString/i18n or I18N_NOOP (the code in kjs uses I18N_NOOP... but where is it translated ?)
// and where does it appear to the user ?
Object err = Error::create(exec, GeneralError, TQString(TQString("DOM exception %1").arg(e.code)).local8Bit());
exec->setException( err );
@@ -396,18 +395,18 @@ Value KJS::getLiveConnectValue(KParts::LiveConnectExtension *lc, const TQString
}
}
-/* only with gcc > 3.4 KDE_NO_EXPORT */
+/* only with gcc > 3.4 TDE_NO_EXPORT */
EmbedLiveConnect::EmbedLiveConnect(KParts::LiveConnectExtension *lc, UString n, KParts::LiveConnectExtension::Type t, int id)
: m_liveconnect (lc), name(n), objtype(t), objid(id)
{}
-/* only with gcc > 3.4 KDE_NO_EXPORT */
+/* only with gcc > 3.4 TDE_NO_EXPORT */
EmbedLiveConnect::~EmbedLiveConnect() {
if (m_liveconnect)
m_liveconnect->unregister(objid);
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
Value EmbedLiveConnect::get(ExecState *, const Identifier & prop) const
{
if (m_liveconnect) {
@@ -420,19 +419,19 @@ Value EmbedLiveConnect::get(ExecState *, const Identifier & prop) const
return Undefined();
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
void EmbedLiveConnect::put(ExecState * exec, const Identifier &prop, const Value & value, int)
{
if (m_liveconnect)
m_liveconnect->put(objid, prop.qstring(), value.toString(exec).qstring());
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
bool EmbedLiveConnect::implementsCall() const {
return objtype == KParts::LiveConnectExtension::TypeFunction;
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
Value EmbedLiveConnect::call(ExecState *exec, Object&, const List &args)
{
if (m_liveconnect) {
@@ -448,17 +447,17 @@ Value EmbedLiveConnect::call(ExecState *exec, Object&, const List &args)
return Undefined();
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
bool EmbedLiveConnect::toBoolean(ExecState *) const {
return true;
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
Value EmbedLiveConnect::toPrimitive(ExecState *exec, Type) const {
return String(toString(exec));
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
UString EmbedLiveConnect::toString(ExecState *) const {
TQString str;
const char *type = objtype == KParts::LiveConnectExtension::TypeFunction ? "Function" : "Object";