Make plugins compatible to latest KPluginFactory code
That one uses std::is_constructible<impl, QObject *, const QVariantList &> which will fail for our current plugin constructors due to being private and with only friend class KPluginFactory.
This commit is contained in:
parent
2e91730f7a
commit
07e5a3ac28
|
@ -24,11 +24,9 @@ class QString;
|
|||
*/
|
||||
class DummyBackend : public CoreBackend
|
||||
{
|
||||
friend class KPluginFactory;
|
||||
|
||||
Q_DISABLE_COPY(DummyBackend)
|
||||
|
||||
private:
|
||||
public:
|
||||
DummyBackend(QObject* parent, const QList<QVariant>& args);
|
||||
|
||||
public:
|
||||
|
|
|
@ -27,11 +27,9 @@ class QString;
|
|||
*/
|
||||
class SfdiskBackend : public CoreBackend
|
||||
{
|
||||
friend class KPluginFactory;
|
||||
|
||||
Q_DISABLE_COPY(SfdiskBackend)
|
||||
|
||||
private:
|
||||
public:
|
||||
SfdiskBackend(QObject* parent, const QList<QVariant>& args);
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue