Disambiguate static variables
They cause clashes in CMake Unity (Jumbo) builds. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: Ia6e293fa30d788f8abd52bf675f11d7d0151259f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
f821878cd7
commit
25d387c614
@ -12,17 +12,17 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtWaylandClient {
|
||||
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwcbifLoader,
|
||||
(QWaylandClientBufferIntegrationFactoryInterface_iid, QLatin1String("/wayland-graphics-integration-client"), Qt::CaseInsensitive))
|
||||
|
||||
QStringList QWaylandClientBufferIntegrationFactory::keys()
|
||||
{
|
||||
return loader->keyMap().values();
|
||||
return qwcbifLoader->keyMap().values();
|
||||
}
|
||||
|
||||
QWaylandClientBufferIntegration *QWaylandClientBufferIntegrationFactory::create(const QString &name, const QStringList &args)
|
||||
{
|
||||
return qLoadPlugin<QWaylandClientBufferIntegration, QWaylandClientBufferIntegrationPlugin>(loader(), name, args);
|
||||
return qLoadPlugin<QWaylandClientBufferIntegration, QWaylandClientBufferIntegrationPlugin>(qwcbifLoader(), name, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,17 +12,17 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtWaylandClient {
|
||||
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwsbifLoader,
|
||||
(QWaylandServerBufferIntegrationFactoryInterface_iid, QLatin1String("/wayland-graphics-integration-client"), Qt::CaseInsensitive))
|
||||
|
||||
QStringList QWaylandServerBufferIntegrationFactory::keys()
|
||||
{
|
||||
return loader->keyMap().values();
|
||||
return qwsbifLoader->keyMap().values();
|
||||
}
|
||||
|
||||
QWaylandServerBufferIntegration *QWaylandServerBufferIntegrationFactory::create(const QString &name, const QStringList &args)
|
||||
{
|
||||
return qLoadPlugin<QWaylandServerBufferIntegration, QWaylandServerBufferIntegrationPlugin>(loader(), name, args);
|
||||
return qLoadPlugin<QWaylandServerBufferIntegration, QWaylandServerBufferIntegrationPlugin>(qwsbifLoader(), name, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,17 +12,17 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtWaylandClient {
|
||||
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwidfiLoader,
|
||||
(QWaylandInputDeviceIntegrationFactoryInterface_iid, QLatin1String("/wayland-inputdevice-integration"), Qt::CaseInsensitive))
|
||||
|
||||
QStringList QWaylandInputDeviceIntegrationFactory::keys()
|
||||
{
|
||||
return loader->keyMap().values();
|
||||
return qwidfiLoader->keyMap().values();
|
||||
}
|
||||
|
||||
QWaylandInputDeviceIntegration *QWaylandInputDeviceIntegrationFactory::create(const QString &name, const QStringList &args)
|
||||
{
|
||||
return qLoadPlugin<QWaylandInputDeviceIntegration, QWaylandInputDeviceIntegrationPlugin>(loader(), name, args);
|
||||
return qLoadPlugin<QWaylandInputDeviceIntegration, QWaylandInputDeviceIntegrationPlugin>(qwidfiLoader(), name, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,17 +12,17 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtWaylandClient {
|
||||
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwdfiLoader,
|
||||
(QWaylandDecorationFactoryInterface_iid, QLatin1String("/wayland-decoration-client"), Qt::CaseInsensitive))
|
||||
|
||||
QStringList QWaylandDecorationFactory::keys()
|
||||
{
|
||||
return loader->keyMap().values();
|
||||
return qwdfiLoader->keyMap().values();
|
||||
}
|
||||
|
||||
QWaylandAbstractDecoration *QWaylandDecorationFactory::create(const QString &name, const QStringList &args)
|
||||
{
|
||||
return qLoadPlugin<QWaylandAbstractDecoration, QWaylandDecorationPlugin>(loader(), name, args);
|
||||
return qLoadPlugin<QWaylandAbstractDecoration, QWaylandDecorationPlugin>(qwdfiLoader(), name, args);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -12,18 +12,18 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtWaylandClient {
|
||||
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
|
||||
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, qwsifLoader,
|
||||
(QWaylandShellIntegrationFactoryInterface_iid, QLatin1String("/wayland-shell-integration"), Qt::CaseInsensitive))
|
||||
|
||||
QStringList QWaylandShellIntegrationFactory::keys()
|
||||
{
|
||||
return loader->keyMap().values();
|
||||
return qwsifLoader->keyMap().values();
|
||||
}
|
||||
|
||||
QWaylandShellIntegration *QWaylandShellIntegrationFactory::create(const QString &name, QWaylandDisplay *display, const QStringList &args)
|
||||
{
|
||||
std::unique_ptr<QWaylandShellIntegration> integration;
|
||||
integration.reset(qLoadPlugin<QWaylandShellIntegration, QWaylandShellIntegrationPlugin>(loader(), name, args));
|
||||
integration.reset(qLoadPlugin<QWaylandShellIntegration, QWaylandShellIntegrationPlugin>(qwsifLoader(), name, args));
|
||||
|
||||
if (integration && !integration->initialize(display))
|
||||
return nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user