Commit fc60dd3d authored by Volker Krause's avatar Volker Krause
Browse files

Remove horrible #define private public hack

This breaks with Qt 6. Instead, make the unit test a friend of the class
it needs access to.
parent b8bf6b65
Pipeline #246506 passed with stage
in 13 minutes and 22 seconds
......@@ -6,14 +6,8 @@
#include "templateparserjobtest.h"
#ifndef _WIN32
#define private public
#endif
#include "templateparserjob.h"
#include "templateparserjob_p.h"
#ifndef _WIN32
#undef protected
#endif
#include <KIdentityManagement/Identity>
#include <KIdentityManagement/IdentityManager>
#include <MimeTreeParser/ObjectTreeParser>
......
......@@ -355,6 +355,7 @@ private:
*/
void makeValidHtml(QString &body);
friend class ::TemplateParserJobTest;
std::unique_ptr<TemplateParserJobPrivate> d;
};
}
Supports Markdown
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