From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/rendering/break_lines.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'khtml/rendering/break_lines.h') diff --git a/khtml/rendering/break_lines.h b/khtml/rendering/break_lines.h index 5176e5fb0..928b75e18 100644 --- a/khtml/rendering/break_lines.h +++ b/khtml/rendering/break_lines.h @@ -6,13 +6,13 @@ namespace khtml { /* - array of unicode codes where breaking shouldn't occur. + array of tqunicode codes where breaking shouldn't occur. (in sorted order because of using with binary search) these are currently for Japanese, though simply adding Korean, Chinese ones should work as well */ /* - dontbreakbefore[] contains characters not covered by TQChar::Punctuation_Close that shouldn't be broken before. + dontbreakbefore[] tqcontains characters not covered by TQChar::Punctuation_Close that shouldn't be broken before. chars included in TQChar::Punctuation_Close are listed below.(look at UAX #14) - 3001 ideographic comma - 3002 ideographic full stop @@ -122,7 +122,7 @@ namespace khtml { inline bool isBreakable( const TQChar *str, const int pos, int len ) { const TQChar *c = str+pos; - unsigned short ch = c->unicode(); + unsigned short ch = c->tqunicode(); if ( ch > 0xff ) { // not latin1, need to do more sophisticated checks for asian fonts unsigned char row = c->row(); @@ -147,8 +147,8 @@ namespace khtml { return false; // do binary search in dontbreak[] - return break_bsearch(dontbreakbefore, c->unicode()) && - break_bsearch(dontbreakafter, (str+(pos-1))->unicode()); + return break_bsearch(dontbreakbefore, c->tqunicode()) && + break_bsearch(dontbreakafter, (str+(pos-1))->tqunicode()); } else // no asian font return c->isSpace(); } else { -- cgit v1.2.1