diff options
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 ); |