summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/api/qeglfshooks.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-07-31 12:36:47 -0700
committerThiago Macieira <thiago.macieira@intel.com>2018-08-03 20:26:50 +0000
commit9bb27ca6cc76a848d9c4a1d7757abf5ffc3943e6 (patch)
treea5164f0df7776cbdb027ab29b3d30fda51071f3b /src/plugins/platforms/eglfs/api/qeglfshooks.cpp
parent95c0b24cd824321e59ae31d5bd78bae62566499b (diff)
Make local symbols of some leaked names
Unnamed namespaces and static are great tools. Use them. Change-Id: Ie01831ddac5446fdbdeefffd15468b3acb3ced79 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs/api/qeglfshooks.cpp')
-rw-r--r--src/plugins/platforms/eglfs/api/qeglfshooks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/api/qeglfshooks.cpp b/src/plugins/platforms/eglfs/api/qeglfshooks.cpp
index d8332a94cb..ff5c5deee4 100644
--- a/src/plugins/platforms/eglfs/api/qeglfshooks.cpp
+++ b/src/plugins/platforms/eglfs/api/qeglfshooks.cpp
@@ -54,6 +54,7 @@ QEglFSDeviceIntegration *qt_egl_device_integration()
#else
+namespace {
class DeviceIntegration
{
public:
@@ -63,6 +64,7 @@ public:
private:
QEglFSDeviceIntegration *m_integration;
};
+}
Q_GLOBAL_STATIC(DeviceIntegration, deviceIntegration)