diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-30 17:02:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-30 17:02:05 +0000 |
commit | 12053939f5b0c757a2b099e90fc0b7371e8817e1 (patch) | |
tree | 6f56986b035edee5262e8d0cf142fcbc9a35a687 /plugins/helpers | |
parent | 13062331be32832680c4dd429d39648f6c8512ed (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@700 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/helpers')
-rw-r--r-- | plugins/helpers/gen_helpers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp index 2ac1b4212c..8a1ce0a922 100644 --- a/plugins/helpers/gen_helpers.cpp +++ b/plugins/helpers/gen_helpers.cpp @@ -30,7 +30,7 @@ int ProtoServiceExists(const char *szModule, const char *szService) { char *Hlp_GetProtocolNameA(const char *proto) {
char protoname[256];
- if ( (!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname)))
+ if ((!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname)))
return NULL;
return mir_strdup(protoname);
@@ -39,7 +39,7 @@ char *Hlp_GetProtocolNameA(const char *proto) { TCHAR *Hlp_GetProtocolName(const char *proto) {
char protoname[256];
- if ( (!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname)))
+ if ((!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname)))
return NULL;
return mir_a2t(protoname);
@@ -210,7 +210,7 @@ int AddErrorLogMessage(const TCHAR* fmt, ...) { //
int ttoi(TCHAR *string)
{
- return ( string == NULL ) ? 0 : _ttoi( string );
+ return ( string == NULL) ? 0 : _ttoi( string );
}
TCHAR *itot(int num) {
@@ -237,7 +237,7 @@ int Hlp_UnicodeCheck(char *szPluginName, BOOL bForce, const char *szModule) { if (!CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM)sizeof(szVersionText), (LPARAM)szVersionText)) {
ptr = strstr(szVersionText, "Unicode");
- if ( (ptr == NULL) && (!DBGetContactSettingByte(NULL, szModule, SETTING_NOENCODINGCHECK, 0))) {
+ if ((ptr == NULL) && (!DBGetContactSettingByte(NULL, szModule, SETTING_NOENCODINGCHECK, 0))) {
if (bForce) {
MessageBoxA(NULL, "You are running the ANSI version Miranda. Please use the ANSI build of this plugin.", szPluginName, MB_OK);
|