diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-15 01:44:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-15 01:44:26 +0000 |
commit | 2d0cd394291d27533313adaf3dfdcd2eb92f61da (patch) | |
tree | f54a0d39f384783af4982dc9b153d1ab563261e3 /kmail/objecttreeparser.cpp | |
parent | 1c93fca14d9ce37499bcfdf994c660186a0b6f17 (diff) | |
download | tdepim-2d0cd394291d27533313adaf3dfdcd2eb92f61da.tar.gz tdepim-2d0cd394291d27533313adaf3dfdcd2eb92f61da.zip |
Fix Qt3 compilation of kdepim
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227976 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/objecttreeparser.cpp')
-rw-r--r-- | kmail/objecttreeparser.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kmail/objecttreeparser.cpp b/kmail/objecttreeparser.cpp index 2cb44ab9b..cb9c420ac 100644 --- a/kmail/objecttreeparser.cpp +++ b/kmail/objecttreeparser.cpp @@ -1047,21 +1047,21 @@ namespace KMail { const TQCString delimZ2("--__--__--\n\n_____________"); const TQCString delimZ1("--__--__--\r\n\r\n_____________"); TQCString partStr, digestHeaderStr; - int thisDelim = cstr.tqfind(TQString(delim1), 0, false); + int thisDelim = cstr.tqfind(delim1.data(), 0, false); if ( thisDelim == -1 ) - thisDelim = cstr.tqfind(TQString(delim2), 0, false); + thisDelim = cstr.tqfind(delim2.data(), 0, false); if ( thisDelim == -1 ) { kdDebug(5006) << " Sorry: Old style Mailman message but no delimiter found." << endl; return false; } - int nextDelim = cstr.tqfind(TQString(delim1), thisDelim+1, false); + int nextDelim = cstr.tqfind(delim1.data(), thisDelim+1, false); if ( -1 == nextDelim ) - nextDelim = cstr.tqfind(TQString(delim2), thisDelim+1, false); + nextDelim = cstr.tqfind(delim2.data(), thisDelim+1, false); if ( -1 == nextDelim ) - nextDelim = cstr.tqfind(TQString(delimZ1), thisDelim+1, false); + nextDelim = cstr.tqfind(delimZ1.data(), thisDelim+1, false); if ( -1 == nextDelim ) - nextDelim = cstr.tqfind(TQString(delimZ2), thisDelim+1, false); + nextDelim = cstr.tqfind(delimZ2.data(), thisDelim+1, false); if ( nextDelim < 0) return false; @@ -1101,7 +1101,7 @@ namespace KMail { partStr += cstr.mid( thisDelim, nextDelim-thisDelim ); TQCString subject("embedded message"); TQCString subSearch("\nSubject:"); - int subPos = partStr.tqfind(TQString(subSearch), 0, false); + int subPos = partStr.tqfind(subSearch.data(), 0, false); if ( -1 < subPos ){ subject = partStr.mid(subPos+subSearch.length()); thisEoL = subject.tqfind('\n'); @@ -1114,13 +1114,13 @@ namespace KMail { subject, true ); //mReader->queueHtml("<br><hr><br>"); thisDelim = nextDelim+1; - nextDelim = cstr.tqfind(TQString(delim1), thisDelim, false); + nextDelim = cstr.tqfind(delim1.data(), thisDelim, false); if ( -1 == nextDelim ) - nextDelim = cstr.tqfind(TQString(delim2), thisDelim, false); + nextDelim = cstr.tqfind(delim2.data(), thisDelim, false); if ( -1 == nextDelim ) - nextDelim = cstr.tqfind(TQString(delimZ1), thisDelim, false); + nextDelim = cstr.tqfind(delimZ1.data(), thisDelim, false); if ( -1 == nextDelim ) - nextDelim = cstr.tqfind(TQString(delimZ2), thisDelim, false); + nextDelim = cstr.tqfind(delimZ2.data(), thisDelim, false); } // reset curent node's Content-Type curNode->setType( DwMime::kTypeText ); |