Do not use "#ifdef" + "#endif" in parameter to preprocessor macro call (MSVC fails on that)

parent f335ea11
......@@ -31,12 +31,16 @@
#include <kpluginfactory.h>
#ifdef CREATE_TEXTDOCUMENT_INSPECTOR
K_PLUGIN_FACTORY(TextPluginFactory,
registerPlugin<TextPlugin>();
#ifdef CREATE_TEXTDOCUMENT_INSPECTOR
registerPlugin<TextDocumentInspectionPlugin>(QLatin1String("TextDocumentInspection"));
#endif
)
#else
K_PLUGIN_FACTORY(TextPluginFactory,
registerPlugin<TextPlugin>();
)
#endif
K_EXPORT_PLUGIN(TextPluginFactory("TextShape"))
TextPlugin::TextPlugin(QObject * parent, const QVariantList &)
......
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