diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-02-27 16:21:17 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-02-28 10:51:35 +0000 |
commit | 1fab644753443a525475740fc23172dedaa70d0e (patch) | |
tree | bca0a88662679acd150172f5a73f64d1604960cf /src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h | |
parent | c4bd9198b4a0fac809903dd2c09276c2c3c1b22e (diff) |
Use default member initialization for raw pointers
Initialize to nullptr to prevent undefined behavior.
Change-Id: I7753c0be77a886d62ecb1cd7b86fc8c98340b0b8
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h')
-rw-r--r-- | src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h b/src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h index c303e5f18..850ad040a 100644 --- a/src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h +++ b/src/hardwareintegration/compositor/shm-emulation-server/shmserverbufferintegration.h @@ -67,9 +67,9 @@ public: QOpenGLTexture *toOpenGlTexture() override; private: - ShmServerBufferIntegration *m_integration; + ShmServerBufferIntegration *m_integration = nullptr; - QSharedMemory *m_shm; + QSharedMemory *m_shm = nullptr; int m_width; int m_height; int m_bpl; |