diff options
author | madmaxoft <github@xoft.cz> | 2014-07-20 23:10:31 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-21 17:38:50 +0200 |
commit | 6be79575fd50e37ac275bd0cb9d16f9e51e8a225 (patch) | |
tree | b02e68b73bf1152f9d84020ee006d5325e096691 /src/Log.cpp | |
parent | Cuboid: added explicit copy assignment operator (diff) | |
download | cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.gz cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.bz2 cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.lz cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.xz cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.tar.zst cuberite-6be79575fd50e37ac275bd0cb9d16f9e51e8a225.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Log.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Log.cpp b/src/Log.cpp index 69b9c13a2..a70b09103 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -59,7 +59,7 @@ cLog * cLog::GetInstance() void cLog::CloseLog() { - if( m_File ) + if (m_File ) fclose (m_File); m_File = 0; } @@ -70,7 +70,7 @@ void cLog::CloseLog() void cLog::OpenLog( const char* a_FileName ) { - if(m_File) fclose (m_File); + if (m_File) fclose (m_File); #ifdef _MSC_VER fopen_s( &m_File, a_FileName, "a+" ); #else @@ -85,11 +85,11 @@ void cLog::OpenLog( const char* a_FileName ) void cLog::ClearLog() { #ifdef _MSC_VER - if( fopen_s( &m_File, "log.txt", "w" ) == 0) + if (fopen_s( &m_File, "log.txt", "w" ) == 0) fclose (m_File); #else m_File = fopen("log.txt", "w" ); - if( m_File ) + if (m_File ) fclose (m_File); #endif m_File = NULL; |