diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-04 09:43:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-04 09:43:26 +0000 |
commit | e88689f3d0032dddfb2c4ac8f65ba2a22a7de571 (patch) | |
tree | e64a9509569f4dd62d2d3a0ab421d5f72aa1275a /src/mir_core | |
parent | fed1940981d82c32e339c391b542ec29b165895b (diff) |
- code formatting;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5574 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/utils.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mir_core/utils.cpp b/src/mir_core/utils.cpp index 21c9e8dfd5..52eef31fc2 100644 --- a/src/mir_core/utils.cpp +++ b/src/mir_core/utils.cpp @@ -23,23 +23,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h"
-MIR_CORE_DLL(char*) replaceStr( char* &dest, const char *src )
+MIR_CORE_DLL(char*) replaceStr( char* &dest, const char *src)
{
- if ( dest != NULL )
- mir_free( dest );
+ if (dest != NULL)
+ mir_free(dest);
- return dest = ( src != NULL ) ? mir_strdup( src ) : NULL;
+ return dest = (src != NULL) ? mir_strdup(src) : NULL;
}
-MIR_CORE_DLL(WCHAR*) replaceStrW( WCHAR* &dest, const WCHAR *src )
+MIR_CORE_DLL(WCHAR*) replaceStrW( WCHAR* &dest, const WCHAR *src)
{
- if ( dest != NULL )
- mir_free( dest );
+ if (dest != NULL)
+ mir_free(dest);
- return dest = ( src != NULL ) ? mir_wstrdup( src ) : NULL;
+ return dest = (src != NULL) ? mir_wstrdup(src) : NULL;
}
-MIR_CORE_DLL(char*) rtrim(char* str)
+MIR_CORE_DLL(char*) rtrim(char *str)
{
if (str == NULL)
return NULL;
|