summaryrefslogtreecommitdiffstats
path: root/framework/domain/messageparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/domain/messageparser.cpp')
-rw-r--r--framework/domain/messageparser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/domain/messageparser.cpp b/framework/domain/messageparser.cpp
index 7be5e052..8363e119 100644
--- a/framework/domain/messageparser.cpp
+++ b/framework/domain/messageparser.cpp
@@ -20,7 +20,6 @@
20 20
21#include "stringhtmlwriter.h" 21#include "stringhtmlwriter.h"
22#include "objecttreesource.h" 22#include "objecttreesource.h"
23#include "csshelper.h"
24 23
25#include <QFile> 24#include <QFile>
26#include <QImage> 25#include <QImage>
@@ -170,11 +169,9 @@ void MessageParser::setMessage(const QVariant &message)
170 169
171 // render the mail 170 // render the mail
172 StringHtmlWriter htmlWriter; 171 StringHtmlWriter htmlWriter;
173 QImage paintDevice;
174 CSSHelper cssHelper(&paintDevice);
175 //temporary files only have the lifetime of the nodehelper, so we keep it around until the mail changes. 172 //temporary files only have the lifetime of the nodehelper, so we keep it around until the mail changes.
176 mNodeHelper = std::make_shared<MimeTreeParser::NodeHelper>(); 173 mNodeHelper = std::make_shared<MimeTreeParser::NodeHelper>();
177 ObjectTreeSource source(&htmlWriter, &cssHelper); 174 ObjectTreeSource source(&htmlWriter);
178 MimeTreeParser::ObjectTreeParser otp(&source, mNodeHelper.get()); 175 MimeTreeParser::ObjectTreeParser otp(&source, mNodeHelper.get());
179 176
180 otp.parseObjectTree(msg.data()); 177 otp.parseObjectTree(msg.data());