Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/private/dataenginemanager.cpp
Show All 34 Lines | |||||
35 | 35 | | |||
36 | namespace Plasma | 36 | namespace Plasma | ||
37 | { | 37 | { | ||
38 | 38 | | |||
39 | class NullEngine : public DataEngine | 39 | class NullEngine : public DataEngine | ||
40 | { | 40 | { | ||
41 | public: | 41 | public: | ||
42 | explicit NullEngine(QObject *parent = nullptr) | 42 | explicit NullEngine(QObject *parent = nullptr) | ||
43 | : DataEngine(KPluginInfo(), parent) | 43 | : DataEngine(KPluginMetaData(), parent) | ||
44 | { | 44 | { | ||
45 | setValid(false); | 45 | setValid(false); | ||
46 | 46 | | |||
47 | // ref() ourselves to ensure we never get deleted | 47 | // ref() ourselves to ensure we never get deleted | ||
48 | d->ref(); | 48 | d->ref(); | ||
49 | } | 49 | } | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |