From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdoctools/xslt.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kdoctools/xslt.cpp') diff --git a/kdoctools/xslt.cpp b/kdoctools/xslt.cpp index 216773e7d..9cbf4cb4d 100644 --- a/kdoctools/xslt.cpp +++ b/kdoctools/xslt.cpp @@ -140,8 +140,8 @@ TQString splitOut(const TQString &parsed, int index) TQString filedata; while (true) { - int endindex = parsed.find("", index); - int startindex = parsed.find("", index); + int startindex = parsed.tqfind(" 0) { - int endindex = filedata.findRev(""); + int endindex = filedata.tqfindRev(""); while (filedata.at(endindex) != '>') endindex++; endindex++; filedata = filedata.left(index) + filedata.mid(endindex); @@ -205,7 +205,7 @@ static TQIODevice *getBZip2device(const TQString &fileName ) if ( base ) { - base->setDevice(f, true); + base->setDevice(TQT_TQIODEVICE(f), true); return new KFilterDev(base, true); } return 0; @@ -336,7 +336,7 @@ TQCString fromUnicode( const TQString &data ) buffer_len += test.length(); } else { TQString res; - res.sprintf( "&#%d;", part.at( i ).unicode() ); + res.sprintf( "&#%d;", TQChar(part.at( i )).tqunicode() ); test = locale->fromUnicode( res ); if (buffer_len + test.length() + 1 > sizeof(buffer)) break; -- cgit v1.2.3