Construct NullEngine with KPluginMetaData()

The deprecated constructor taking a KPluginInfo unconditionally calls toMetaData() and then asserts.

BUG: 417548

Differential Revision: https://phabricator.kde.org/D27366
This commit is contained in:
Kai Uwe Broulik 2020-02-13 15:21:22 +01:00
parent 97d431270d
commit 1dc36bc2ce

View File

@ -40,7 +40,7 @@ class NullEngine : public DataEngine
{
public:
explicit NullEngine(QObject *parent = nullptr)
: DataEngine(KPluginInfo(), parent)
: DataEngine(KPluginMetaData(), parent)
{
setValid(false);