| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformintegrationfactory.cpp | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | namespace { 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 
 never executed: } guard.store(QtGlobalStatic::Destroyed);never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", QLatin1String("/platforms"), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", QLatin1String("/platforms"), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; return end of blocknever executed: &holder.value; return &holder.value;never executed: } } } static QGlobalStatic<QFactoryLoader, Q_QGS_loader::innerFunction, Q_QGS_loader::guard> loader; return &holder.value; | 0 | ||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | - | |||||||
| 9 | namespace { namespace Q_QGS_directLoader { typedef QFactoryLoader Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized 
 never executed: } guard.store(QtGlobalStatic::Destroyed);never executed: }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", QLatin1String(""), Qt::CaseInsensitive))) : value ("org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", QLatin1String(""), Qt::CaseInsensitive) { guard.store(QtGlobalStatic::Initialized); } } holder; return end of blocknever executed: &holder.value; return &holder.value;never executed: } } } static QGlobalStatic<QFactoryLoader, Q_QGS_directLoader::innerFunction, Q_QGS_directLoader::guard> directLoader; return &holder.value; | 0 | ||||||
| 10 | - | |||||||
| 11 | - | |||||||
| 12 | - | |||||||
| 13 | QPlatformIntegration *QPlatformIntegrationFactory::create(const QString &platform, const QStringList ¶mList, int &argc, char **argv, const QString &platformPluginPath) | - | ||||||
| 14 | { | - | ||||||
| 15 | - | |||||||
| 16 | - | |||||||
| 17 | if (!platformPluginPath.isEmpty() 
 | 0 | ||||||
| 18 | QCoreApplication::addLibraryPath(platformPluginPath); | - | ||||||
| 19 | if (QPlatformIntegration *ret = qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList, argc, argv) 
 | 0 | ||||||
| 20 | return never executed: ret; return ret;never executed:  return ret; | 0 | ||||||
| 21 | } never executed:  end of block | 0 | ||||||
| 22 | - | |||||||
| 23 | - | |||||||
| 24 | - | |||||||
| 25 | return never executed: qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(loader(), platform, paramList, argc, argv); return qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(loader(), platform, paramList, argc, argv);never executed:  return qLoadPlugin<QPlatformIntegration, QPlatformIntegrationPlugin>(loader(), platform, paramList, argc, argv); | 0 | ||||||
| 26 | } | - | ||||||
| 27 | QStringList QPlatformIntegrationFactory::keys(const QString &platformPluginPath) | - | ||||||
| 28 | { | - | ||||||
| 29 | QStringList list; | - | ||||||
| 30 | - | |||||||
| 31 | if (!platformPluginPath.isEmpty() 
 | 0 | ||||||
| 32 | QCoreApplication::addLibraryPath(platformPluginPath); | - | ||||||
| 33 | list = directLoader()->keyMap().values(); | - | ||||||
| 34 | if (!list.isEmpty() 
 | 0 | ||||||
| 35 | const QString postFix = QLatin1String(" (from ") | - | ||||||
| 36 | + QDir::toNativeSeparators(platformPluginPath) | - | ||||||
| 37 | + QLatin1Char(')'); | - | ||||||
| 38 | const QStringList::iterator end = list.end(); | - | ||||||
| 39 | for (QStringList::iterator it = list.begin(); it != end 
 | 0 | ||||||
| 40 | (* never executed: it).append(postFix); (*it).append(postFix);never executed:  (*it).append(postFix); | 0 | ||||||
| 41 | } never executed:  end of block | 0 | ||||||
| 42 | } never executed:  end of block | 0 | ||||||
| 43 | - | |||||||
| 44 | - | |||||||
| 45 | - | |||||||
| 46 | list.append(loader()->keyMap().values()); | - | ||||||
| 47 | return never executed: list; return list;never executed:  return list; | 0 | ||||||
| 48 | } | - | ||||||
| 49 | - | |||||||
| 50 | - | |||||||
| Switch to Source code | Preprocessed file |