From 8f14fb0418241694e61cb35dda95fea6d9b7830d Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:47 +0000 Subject: TQt conversion fixes git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1158447 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dcop/dcopclient.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dcop/dcopclient.cpp') diff --git a/dcop/dcopclient.cpp b/dcop/dcopclient.cpp index 176dbf8e9..2bbe69ed9 100644 --- a/dcop/dcopclient.cpp +++ b/dcop/dcopclient.cpp @@ -61,7 +61,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include -#include +#include #include #include @@ -780,7 +780,7 @@ bool DCOPClient::attachInternal( bool registerAsAnonymous ) emit attachFailed(TQString::fromLatin1( "Could not read network connection list.\n" )+TQFile::decodeName(fName)); return false; } - int size = QMIN( 1024, f.size() ); // protection against a huge file + int size = QMIN( (qint64)1024, f.size() ); // protection against a huge file TQCString contents( size+1 ); if ( f.readBlock( contents.data(), size ) != size ) { @@ -1339,7 +1339,7 @@ static void fillQtObjects( QCStringList& l, TQObject* o, TQCString path ) if ( n == "unnamed" || n.isEmpty() ) { n.sprintf("%p", (void *) obj); - n = TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(n).latin1(); + n = TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(TQString(n)).latin1(); } TQCString fn = path + n; l.append( fn ); @@ -1376,7 +1376,7 @@ static void fillQtObjectsEx( TQValueList& l, TQObject* o, TQCString path ) if ( n == "unnamed" || n.isEmpty() ) { n.sprintf("%p", (void *) obj); - n = TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(n).latin1(); + n = TQString("unnamed%1(%2, %3)").arg(++unnamed).arg(obj->className()).arg(TQString(n)).latin1(); } TQCString fn = path + n; l.append( O( fn, obj ) ); @@ -1785,8 +1785,8 @@ int DCOPClient::callAsync(const TQCString &remApp, const TQCString &remObjId, TQByteArray replyData; ReplyStruct *replyStruct = new ReplyStruct; - replyStruct->replyType = new QCString; - replyStruct->replyData = new QByteArray; + replyStruct->replyType = new TQCString; + replyStruct->replyData = new TQByteArray; replyStruct->replyObject = callBackObj; replyStruct->replySlot = callBackSlot; replyStruct->replyId = ++d->transactionId; -- cgit v1.2.3