[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/plugins/kmail/bodypartformatter
From: Allen Winter <winter () kde ! org>
Date: 2006-06-25 21:40:48
Message-ID: 1151271648.533110.24246.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 554971 by winterz:
Krazy stuff:
spelling fixes
QString + "*" -> QString + '*'
M +5 -5 text_calendar.cpp
M +2 -2 text_xdiff.cpp
--- trunk/KDE/kdepim/plugins/kmail/bodypartformatter/text_calendar.cpp #554970:554971
@@ -75,13 +75,13 @@
class KMInvitationFormatterHelper : public KCal::InvitationFormatterHelper
{
- public:
+ public:
KMInvitationFormatterHelper( KMail::Interface::BodyPart *bodyPart ) : mBodyPart( bodyPart ) {}
virtual QString generateLinkURL( const QString &id ) { return mBodyPart->makeLink( id ); }
private:
KMail::Interface::BodyPart *mBodyPart;
};
-
+
class Formatter : public KMail::Interface::BodyPartFormatter
{
public:
@@ -94,9 +94,9 @@
CalendarLocal cl( KPimPrefs::timezone() );
KMInvitationFormatterHelper helper( bodyPart );
QString source;
- /* If the bodypart does not have a charset specified, we need to fall back to
- utf8, not the KMail fallback encoding, so get the contents as binary and decode
- explicitely. */
+ /* If the bodypart does not have a charset specified, we need to fall
+ back to utf8, not the KMail fallback encoding, so get the contents
+ as binary and decode explicitly. */
if ( bodyPart->contentTypeParameter( "charset").isEmpty() ) {
const QByteArray &ba = bodyPart->asBinary();
source = QString::fromUtf8(ba);
--- trunk/KDE/kdepim/plugins/kmail/bodypartformatter/text_xdiff.cpp #554970:554971
@@ -96,7 +96,7 @@
QString chunkStyle( "style=\"color: blue;\"" );
QString html = "<br><div align=\"center\">";
- html += "<pre " + tableStyle + ">";
+ html += "<pre " + tableStyle + '>';
QStringList lines = diff.split( '\n' );
for ( QStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) {
@@ -119,7 +119,7 @@
style = "";
}
}
- html += "<span " + style + ">" + line + "</span><br/>";
+ html += "<span " + style + '>' + line + "</span><br/>";
}
html += "</pre></div>";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic