Commit 30e19e6e authored by Daniel Vrátil's avatar Daniel Vrátil 🤖 Committed by Laurent Montel

Don't redefine private to public in test

This fails on platforms where access specifiers are part of the ABI (e.g. MSVC)
because the symbol name generated from the included header is then different from
the symbol exported from the DLL.
parent 45dfdef5
......@@ -6,10 +6,8 @@
#include "templateparserjobtest.h"
#define private public
#include "templateparserjob_p.h"
#include "templateparserjob.h"
#undef protected
#include <MimeTreeParser/ObjectTreeParser>
#include <KIdentityManagement/IdentityManager>
......
......@@ -24,6 +24,7 @@ class ImageCollector;
}
struct TemplateParserExtractHtmlInfoResult;
class TemplateParserJobTest;
namespace TemplateParser {
class TemplateParserJobPrivate;
......@@ -129,6 +130,7 @@ class TemplateParserJobPrivate;
class TEMPLATEPARSER_EXPORT TemplateParserJob : public QObject
{
Q_OBJECT
friend class TemplateParserJobTest;
public:
enum Mode {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment