diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 11:52:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 11:52:14 +0400 |
commit | b8a71efeba70d6c3ebc579f5043daa4162da86e8 (patch) | |
tree | d2d89da2a59f8955583f4968a35e48c578fd4d4c /source/gameengine/BlenderRoutines/BL_System.cpp | |
parent | 81d8f17843f92c6d6abbacb652ca22917910f4bc (diff) |
style cleanup: follow style guide for/with/if spacing
Diffstat (limited to 'source/gameengine/BlenderRoutines/BL_System.cpp')
-rw-r--r-- | source/gameengine/BlenderRoutines/BL_System.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/gameengine/BlenderRoutines/BL_System.cpp b/source/gameengine/BlenderRoutines/BL_System.cpp index a97d1a6d5e9..251182a07aa 100644 --- a/source/gameengine/BlenderRoutines/BL_System.cpp +++ b/source/gameengine/BlenderRoutines/BL_System.cpp @@ -44,7 +44,7 @@ static SingletonSystem *_system_instance = NULL; SYS_SystemHandle SYS_GetSystem() { - if(!_system_instance) + if (!_system_instance) _system_instance = new SingletonSystem(); return (SYS_SystemHandle)_system_instance; @@ -52,7 +52,7 @@ SYS_SystemHandle SYS_GetSystem() void SYS_DeleteSystem(SYS_SystemHandle sys) { - if(_system_instance) { + if (_system_instance) { delete _system_instance; _system_instance = NULL; } @@ -61,7 +61,7 @@ void SYS_DeleteSystem(SYS_SystemHandle sys) int SYS_GetCommandLineInt(SYS_SystemHandle sys, const char *paramname, int defaultvalue) { int *result = ((SingletonSystem *)sys)->int_params[paramname]; - if(result) + if (result) return *result; return defaultvalue; @@ -70,7 +70,7 @@ int SYS_GetCommandLineInt(SYS_SystemHandle sys, const char *paramname, int defau float SYS_GetCommandLineFloat(SYS_SystemHandle sys, const char *paramname, float defaultvalue) { float *result = ((SingletonSystem *)sys)->float_params[paramname]; - if(result) + if (result) return *result; return defaultvalue; @@ -79,7 +79,7 @@ float SYS_GetCommandLineFloat(SYS_SystemHandle sys, const char *paramname, float const char *SYS_GetCommandLineString(SYS_SystemHandle sys, const char *paramname, const char *defaultvalue) { STR_String *result = ((SingletonSystem *)sys)->string_params[paramname]; - if(result) + if (result) return *result; return defaultvalue; |