From 99641dd80c6c142d17b1fece9ceaf5db4af0c12b Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Wed, 7 Jan 2015 08:08:01 +0100 Subject: [PATCH] Fix function name --- messageviewer/viewer/objecttreeparser.cpp | 35 +++++++++-------------- messageviewer/viewer/objecttreeparser.h | 2 +- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/messageviewer/viewer/objecttreeparser.cpp b/messageviewer/viewer/objecttreeparser.cpp index e9b7c4c366..5efbbda1d2 100644 --- a/messageviewer/viewer/objecttreeparser.cpp +++ b/messageviewer/viewer/objecttreeparser.cpp @@ -1220,18 +1220,11 @@ bool ObjectTreeParser::processTextHtmlSubtype( KMime::Content * curNode, Process if ( !htmlWriter() ) return true; - QString bodyText; - if ( mSource->htmlMail() ) { - bodyText = bodyHTML; - }/* else { - bodyText = QLatin1String(StringUtil::convertAngleBracketsToHtml( partBody )); - }*/ - if ( curNode->topLevel()->textContent() == curNode || attachmentStrategy()->defaultDisplay( curNode ) == AttachmentStrategy::Inline || showOnlyOneMimePart() ) { if ( mSource->htmlMail() ) { - + QString bodyText = bodyHTML; HTMLQuoteColorer colorer; colorer.setEnableHtmlQuoteColorer(GlobalSettings::self()->htmlQuoteColorerEnabled()); QString extraHead; @@ -1472,7 +1465,7 @@ bool ObjectTreeParser::processTextPlainSubtype( KMime::Content *curNode, Process return true; } -void ObjectTreeParser::stdChildHandling( KMime::Content * child ) { +void ObjectTreeParser::standardChildHandling( KMime::Content * child ) { if ( !child ) return; @@ -1511,7 +1504,7 @@ bool ObjectTreeParser::processMultiPartMixedSubtype( KMime::Content * node, Proc return false; // normal treatment of the parts in the mp/mixed container - stdChildHandling( child ); + standardChildHandling( child ); return true; } @@ -1545,10 +1538,10 @@ bool ObjectTreeParser::processMultiPartAlternativeSubtype( KMime::Content * node // the plainTextContent and the htmlContent if ( !htmlWriter() ) { if ( dataPlain ) { - stdChildHandling( dataPlain ); + standardChildHandling( dataPlain ); } if ( dataHtml ) { - stdChildHandling( dataHtml ); + standardChildHandling( dataHtml ); } return true; } @@ -1557,19 +1550,19 @@ bool ObjectTreeParser::processMultiPartAlternativeSubtype( KMime::Content * node (dataHtml && dataPlain && dataPlain->body().isEmpty()) ) { if ( dataPlain ) mNodeHelper->setNodeProcessed( dataPlain, false); - stdChildHandling( dataHtml ); + standardChildHandling( dataHtml ); mSource->setHtmlMode( Util::MultipartHtml ); return true; } if ( !htmlWriter() || (!mSource->htmlMail() && dataPlain) ) { mNodeHelper->setNodeProcessed( dataHtml, false ); - stdChildHandling( dataPlain ); + standardChildHandling( dataPlain ); mSource->setHtmlMode( Util::MultipartPlain ); return true; } - stdChildHandling( child ); + standardChildHandling( child ); return true; } @@ -1588,7 +1581,7 @@ bool ObjectTreeParser::processMultiPartSignedSubtype( KMime::Content * node, Pro kDebug() << "mulitpart/signed must have exactly two child parts!" << endl << "processing as multipart/mixed"; if ( child ) - stdChildHandling( child ); + standardChildHandling( child ); return child; } @@ -1601,7 +1594,7 @@ bool ObjectTreeParser::processMultiPartSignedSubtype( KMime::Content * node, Pro mNodeHelper->setNodeProcessed( signature, true); if ( !includeSignatures() ) { - stdChildHandling( signedData ); + standardChildHandling( signedData ); return true; } @@ -1623,7 +1616,7 @@ bool ObjectTreeParser::processMultiPartSignedSubtype( KMime::Content * node, Pro if ( !protocol ) { mNodeHelper->setNodeProcessed( signature, true ); - stdChildHandling( signedData ); + standardChildHandling( signedData ); return true; } @@ -1672,7 +1665,7 @@ bool ObjectTreeParser::processMultiPartEncryptedSubtype( KMime::Content * node, */ if ( !data ) { - stdChildHandling( child ); + standardChildHandling( child ); return true; } @@ -1680,7 +1673,7 @@ bool ObjectTreeParser::processMultiPartEncryptedSubtype( KMime::Content * node, KMime::Content * dataChild = MessageCore::NodeHelper::firstChild( data ); if ( dataChild ) { - stdChildHandling( dataChild ); + standardChildHandling( dataChild ); return true; } @@ -3235,7 +3228,7 @@ QString ObjectTreeParser::quotedHTML( const QString& s, bool decorate ) unsigned int pos, beg; // skip leading empty lines - for ( pos = 0; pos < length && s[pos] <= QLatin1Char(' '); pos++ ) + for ( pos = 0; pos < length && s[pos] <= QLatin1Char(' '); ++pos ) ; while (pos > 0 && (s[pos-1] == QLatin1Char(' ') || s[pos-1] == QLatin1Char('\t'))) pos--; beg = pos; diff --git a/messageviewer/viewer/objecttreeparser.h b/messageviewer/viewer/objecttreeparser.h index 0ea54eb90e..f1e1d52530 100644 --- a/messageviewer/viewer/objecttreeparser.h +++ b/messageviewer/viewer/objecttreeparser.h @@ -422,7 +422,7 @@ private: /** Standard children handling a.k.a. multipart/mixed (w/o kroupware hacks) */ - void stdChildHandling( KMime::Content * child ); + void standardChildHandling( KMime::Content * child ); void defaultHandling( KMime::Content * node, ProcessResult & result ); -- GitLab