diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /khtml/xml/dom_stringimpl.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/xml/dom_stringimpl.h')
-rw-r--r-- | khtml/xml/dom_stringimpl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/khtml/xml/dom_stringimpl.h b/khtml/xml/dom_stringimpl.h index b1430bc89..cd7128967 100644 --- a/khtml/xml/dom_stringimpl.h +++ b/khtml/xml/dom_stringimpl.h @@ -23,13 +23,13 @@ #ifndef _DOM_DOMStringImpl_h_ #define _DOM_DOMStringImpl_h_ -#include <qstring.h> +#include <tqstring.h> #include "dom/dom_misc.h" #include "misc/khtmllayout.h" #include "misc/shared.h" -#define QT_ALLOC_QCHAR_VEC( N ) (QChar*) new char[ sizeof(QChar)*( N ) ] +#define QT_ALLOC_QCHAR_VEC( N ) (TQChar*) new char[ sizeof(TQChar)*( N ) ] #define QT_DELETE_QCHAR_VEC( P ) delete[] ((char*)( P )) namespace DOM { @@ -42,11 +42,11 @@ private: protected: DOMStringImpl() { s = 0, l = 0; } public: - DOMStringImpl(const QChar *str, unsigned int len) { + DOMStringImpl(const TQChar *str, unsigned int len) { bool havestr = str && len; s = QT_ALLOC_QCHAR_VEC( havestr ? len : 1 ); if(str && len) { - memcpy( s, str, len * sizeof(QChar) ); + memcpy( s, str, len * sizeof(TQChar) ); l = len; } else { // crash protection @@ -56,7 +56,7 @@ public: } explicit DOMStringImpl(const char *str); - explicit DOMStringImpl(const QChar &ch) { + explicit DOMStringImpl(const TQChar &ch) { s = QT_ALLOC_QCHAR_VEC( 1 ); s[0] = ch; l = 1; @@ -78,7 +78,7 @@ public: DOMStringImpl *substring(unsigned int pos, unsigned int len); DOMStringImpl *collapseWhiteSpace(bool preserveLF, bool preserveWS); - const QChar &operator [] (int pos) { return s[pos]; } + const TQChar &operator [] (int pos) { return s[pos]; } bool containsOnlyWhitespace() const; // ignores trailing garbage, unlike QString @@ -92,12 +92,12 @@ public: DOMStringImpl *capitalize(bool noFirstCap=false) const; DOMStringImpl *escapeHTML(); - QChar *unicode() const { return s; } + TQChar *unicode() const { return s; } uint length() const { return l; } - QString string() const; + TQString string() const; unsigned int l; - QChar *s; + TQChar *s; }; } |