From 30ab6ceb71842f003f649b3d62b89af010cf40d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jun 2012 17:00:14 +0000 Subject: - direct call of MS_SKIN_ADDNEWSOUND replaced with Skin_AddSound() call; - obsolete structure SKINSOUNDDESC removed - dynamically translated hot keys; - checked correct LPGEN'ing of the sounds creation; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@500 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/parse_alias.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Variables/parse_alias.cpp') diff --git a/plugins/Variables/parse_alias.cpp b/plugins/Variables/parse_alias.cpp index 7f90e0eb04..2fe4164d15 100644 --- a/plugins/Variables/parse_alias.cpp +++ b/plugins/Variables/parse_alias.cpp @@ -29,7 +29,7 @@ static ALIASREGISTER *searchAliasRegister(TCHAR *szAlias) { unsigned int i; res = NULL; - if ( (szAlias == NULL) || (_tcslen(szAlias) == 0) ) { + if ( (szAlias == NULL) || (_tcslen(szAlias) == 0)) { return NULL; } EnterCriticalSection(&csAliasRegister); @@ -55,12 +55,12 @@ static TCHAR *replaceArguments(TCHAR *res, TCHAR *tArg, TCHAR *rArg) { cur = ecur = 0; while (*(res+cur) != _T('\0')) { - if ( (*(res+cur) == _T('(')) || (*(res+cur) == _T(',')) ) { + if ( (*(res+cur) == _T('(')) || (*(res+cur) == _T(','))) { ecur = ++cur; - while ( (*(res+ecur) != _T(')')) && (*(res+ecur) != _T(',')) ) { + while ( (*(res+ecur) != _T(')')) && (*(res+ecur) != _T(','))) { ecur++; } - if ( ((signed int)_tcslen(tArg) == (ecur-cur)) && (!_tcsncmp(tArg, res+cur, _tcslen(tArg))) ) { + if ( ((signed int)_tcslen(tArg) == (ecur-cur)) && (!_tcsncmp(tArg, res+cur, _tcslen(tArg)))) { if (_tcslen(rArg) > _tcslen(tArg)) { res = ( TCHAR* )realloc(res, (_tcslen(res) + (_tcslen(rArg)-_tcslen(tArg)) + 1)*sizeof(TCHAR)); if (res == NULL) @@ -83,7 +83,7 @@ static TCHAR *parseTranslateAlias(ARGUMENTSINFO *ai) { ALIASREGISTER *areg; areg = searchAliasRegister(ai->targv[0]); - if ( (areg == NULL) || (areg->argc != ai->argc-1) ) { + if ( (areg == NULL) || (areg->argc != ai->argc-1)) { return NULL; } res = _tcsdup(areg->szTranslation); @@ -188,7 +188,7 @@ static TCHAR *parseAddAlias(ARGUMENTSINFO *ai) { if (i != argc-1) _tcscat(szArgs, _T(",")); } - if ( (szArgs != NULL) && (argc > 0) ) { + if ( (szArgs != NULL) && (argc > 0)) { szArgsA = u2a(szArgs); -- cgit v1.2.3