| 855 | } |
| 856 | |
| 857 | void DocumentPrivate::loadServiceList(const QList<KPluginMetaData> &offers) |
| 858 | { |
| 859 | int count = offers.count(); |
| 860 | if (count <= 0) { |
| 861 | return; |
| 862 | } |
| 863 | |
| 864 | for (const auto &offer : std::as_const(offers)) { |
| 865 | auto id = offer.pluginId(); |
| 866 | // don't load already loaded generators |
| 867 | if (m_loadedGenerators.contains(id)) { |
| 868 | continue; |
| 869 | } |
| 870 | |
| 871 | auto *g = loadGeneratorLibrary(offer); |
| 872 | (void)g; |
| 873 | } |
| 874 | } |
| 875 | |
| 876 | void DocumentPrivate::unloadGenerator(GeneratorInfo &info) |
| 877 | { |
no test coverage detected