diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-05-24 12:47:48 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-05-24 12:49:30 +0300 |
commit | a7c3ec4febf2450551f4663b78f0562c0e886923 (patch) | |
tree | cf8461caf50cbe62581c930a3773e9500c631d1e /intern/ghost/intern/GHOST_ISystem.cpp | |
parent | 0b588f0905c7fa17c61e612e4457c96be176145c (diff) |
GHOST cleanup (null check before delete, and 0 -> NULL for pointers).
Based on patch from Lawrence D'Oliveiro (ldo) in T48499.
Diffstat (limited to 'intern/ghost/intern/GHOST_ISystem.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_ISystem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_ISystem.cpp b/intern/ghost/intern/GHOST_ISystem.cpp index d7dd2b1cde1..37d5926ffc2 100644 --- a/intern/ghost/intern/GHOST_ISystem.cpp +++ b/intern/ghost/intern/GHOST_ISystem.cpp @@ -54,7 +54,7 @@ # endif #endif -GHOST_ISystem *GHOST_ISystem::m_system = 0; +GHOST_ISystem *GHOST_ISystem::m_system = NULL; GHOST_TSuccess GHOST_ISystem::createSystem() @@ -76,7 +76,7 @@ GHOST_TSuccess GHOST_ISystem::createSystem() # endif # endif #endif - success = m_system != 0 ? GHOST_kSuccess : GHOST_kFailure; + success = m_system != NULL ? GHOST_kSuccess : GHOST_kFailure; } else { success = GHOST_kFailure; @@ -92,7 +92,7 @@ GHOST_TSuccess GHOST_ISystem::disposeSystem() GHOST_TSuccess success = GHOST_kSuccess; if (m_system) { delete m_system; - m_system = 0; + m_system = NULL; } else { success = GHOST_kFailure; |