qgenericpluginfactory.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qgenericpluginfactory.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5namespace { namespace Q_QGS_loader { typedef QFactoryLoader Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEnever evaluated
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
never executed: guard.store(QtGlobalStatic::Destroyed);
}
never executed: end of block
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QGenericPluginFactoryInterface", QLatin1String("/generic"), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QGenericPluginFactoryInterface", QLatin1String("/generic"), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; return
never executed: return &holder.value;
&holder.value;
never executed: return &holder.value;
} } } static QGlobalStatic<QFactoryLoader, Q_QGS_loader::innerFunction, Q_QGS_loader::guard> loader;
0
6QObject *QGenericPluginFactory::create(const QString& key, const QString &specification)-
7{-
8 return
never executed: return qLoadPlugin<QObject, QGenericPlugin>(loader(), key.toLower(), specification);
qLoadPlugin<QObject, QGenericPlugin>(loader(), key.toLower(), specification);
never executed: return qLoadPlugin<QObject, QGenericPlugin>(loader(), key.toLower(), specification);
0
9}-
10-
11-
12-
13-
14-
15-
16QStringList QGenericPluginFactory::keys()-
17{-
18 QStringList list;-
19-
20 typedef QMultiMap<int, QString> PluginKeyMap;-
21 typedef PluginKeyMap::const_iterator PluginKeyMapConstIterator;-
22-
23 const PluginKeyMap keyMap = loader()->keyMap();-
24 const PluginKeyMapConstIterator cend = keyMap.constEnd();-
25 for (PluginKeyMapConstIterator it = keyMap.constBegin(); it != cend
it != cendDescription
TRUEnever evaluated
FALSEnever evaluated
; ++it)
0
26 if (!list.contains(it.value())
!list.contains(it.value())Description
TRUEnever evaluated
FALSEnever evaluated
)
0
27 list += it.value();
never executed: list += it.value();
0
28 return
never executed: return list;
list;
never executed: return list;
0
29}-
30-
31-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9