Skip to content

Commit

Permalink
Delete content device and default MimeText to quotedPrintable
Browse files Browse the repository at this point in the history
  • Loading branch information
dantti committed Nov 9, 2015
1 parent 3ef511e commit 4305ec0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/mimepart.cpp
Expand Up @@ -285,6 +285,11 @@ MimePartPrivate *MimePart::d_func()
return d_ptr.data();
}

MimePartPrivate::~MimePartPrivate()
{
delete contentDevice;
}

bool MimePartPrivate::writeRaw(QIODevice *input, QIODevice *out)
{
char block[4096];
Expand Down
1 change: 1 addition & 0 deletions src/mimepart_p.h
Expand Up @@ -26,6 +26,7 @@ class QFile;
class MimePartPrivate : public QSharedData
{
public:
virtual ~MimePartPrivate();
bool writeRaw(QIODevice *input, QIODevice *out);
bool writeBase64(QIODevice *input, QIODevice *out);
bool writeQuotedPrintable(QIODevice *input, QIODevice *out);
Expand Down
4 changes: 2 additions & 2 deletions src/mimetext.cpp
Expand Up @@ -22,8 +22,8 @@ MimeText::MimeText(const QString &txt)
{
Q_D(MimePart);
d->contentType = QByteArrayLiteral("text/plain");
d->contentCharset = QByteArrayLiteral("utf-8");
d->contentEncoding = _8Bit;
d->contentCharset = QByteArrayLiteral("UTF-8");
d->contentEncoding = QuotedPrintable;
setData(txt);
}

Expand Down

0 comments on commit 4305ec0

Please sign in to comment.