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

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 @@ ...@@ -6,10 +6,8 @@
#include "templateparserjobtest.h" #include "templateparserjobtest.h"
#define private public
#include "templateparserjob_p.h" #include "templateparserjob_p.h"
#include "templateparserjob.h" #include "templateparserjob.h"
#undef protected
#include <MimeTreeParser/ObjectTreeParser> #include <MimeTreeParser/ObjectTreeParser>
#include <KIdentityManagement/IdentityManager> #include <KIdentityManagement/IdentityManager>
......
...@@ -24,6 +24,7 @@ class ImageCollector; ...@@ -24,6 +24,7 @@ class ImageCollector;
} }
struct TemplateParserExtractHtmlInfoResult; struct TemplateParserExtractHtmlInfoResult;
class TemplateParserJobTest;
namespace TemplateParser { namespace TemplateParser {
class TemplateParserJobPrivate; class TemplateParserJobPrivate;
...@@ -129,6 +130,7 @@ class TemplateParserJobPrivate; ...@@ -129,6 +130,7 @@ class TemplateParserJobPrivate;
class TEMPLATEPARSER_EXPORT TemplateParserJob : public QObject class TEMPLATEPARSER_EXPORT TemplateParserJob : public QObject
{ {
Q_OBJECT Q_OBJECT
friend class TemplateParserJobTest;
public: public:
enum Mode { 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