Browse Source

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.
release/20.12
Friedrich W. H. Kossebau 3 months ago
parent
commit
07e5a3ac28
2 changed files with 2 additions and 6 deletions
  1. +1
    -3
      src/plugins/dummy/dummybackend.h
  2. +1
    -3
      src/plugins/sfdisk/sfdiskbackend.h

+ 1
- 3
src/plugins/dummy/dummybackend.h View File

@ -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:


+ 1
- 3
src/plugins/sfdisk/sfdiskbackend.h View File

@ -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…
Cancel
Save