[Kst] kdeextragear-2/kst/kst/extensions/js/kjsembed
George Staikos
staikos at kde.org
Tue Apr 12 04:47:54 CEST 2005
CVS commit by staikos:
de-inline
M +27 -0 jsbinding.cpp 1.3
M +1 -28 jsbinding.h 1.4
--- kdeextragear-2/kst/kst/extensions/js/kjsembed/jsbinding.cpp #1.2:1.3
@@ -34,4 +34,31 @@
#include <stdlib.h>
+namespace KJS {
+
+ UString::UString( const QString &d )
+ {
+ uint len = d.length();
+ UChar *dat = new UChar[len];
+ memcpy( dat, d.unicode(), len * sizeof(UChar) );
+ rep = UString::Rep::create(dat, len);
+ }
+
+ QString UString::qstring() const
+ {
+ return QString((QChar*) data(), size());
+ }
+
+ QConstString UString::qconststring() const
+ {
+ return QConstString((QChar*) data(), size());
+ }
+
+ QString Identifier::qstring() const
+ {
+ return QString((QChar*) data(), size());
+ }
+
+}
+
namespace KJSEmbed {
--- kdeextragear-2/kst/kst/extensions/js/kjsembed/jsbinding.h #1.3:1.4
@@ -37,31 +37,4 @@
* @version $Id$
*/
-namespace KJS {
-
- inline UString::UString( const QString &d )
- {
- uint len = d.length();
- UChar *dat = new UChar[len];
- memcpy( dat, d.unicode(), len * sizeof(UChar) );
- rep = UString::Rep::create(dat, len);
- }
-
- inline QString UString::qstring() const
- {
- return QString((QChar*) data(), size());
- }
-
- inline QConstString UString::qconststring() const
- {
- return QConstString((QChar*) data(), size());
- }
-
- inline QString Identifier::qstring() const
- {
- return QString((QChar*) data(), size());
- }
-
-}
-
namespace KJSEmbed {
class JSObjectProxy;
More information about the Kst
mailing list