summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-03 19:18:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-03 19:18:37 +0000
commit232b4318fcac3621d5bf3731965d051af5ee0c37 (patch)
tree515fe630980c24fee7159a0b10eaa2d01d0d3cd1 /src/modules
parent4c1143795a4e0ab188e23f89ee456408fdb6da24 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@287 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/plugins/newplugins.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp
index 1b73fb9a2d..ff1c51f168 100644
--- a/src/modules/plugins/newplugins.cpp
+++ b/src/modules/plugins/newplugins.cpp
@@ -143,8 +143,7 @@ char * GetPluginNameByInstance( HINSTANCE hInstance )
{
int i = 0;
if ( pluginList.getCount() == 0) return NULL;
- for (i = 0; i < pluginList.getCount(); i++)
- {
+ for (i = 0; i < pluginList.getCount(); i++) {
pluginEntry* pe = pluginList[i];
if (pe->bpi.pluginInfo && pe->bpi.hInst == hInstance)
return pe->bpi.pluginInfo->shortName;
@@ -183,9 +182,9 @@ static int uuidToString(const MUUID uuid, char *szStr, int cbLen)
return 1;
}
-static int equalUUID(MUUID u1, MUUID u2)
+static int equalUUID(const MUUID& u1, const MUUID& u2)
{
- return memcmp(&u1, &u2, sizeof(MUUID))?0:1;
+ return memcmp(&u1, &u2, sizeof(MUUID))?0:1;
}
static MUUID miid_last = MIID_LAST;
@@ -194,20 +193,12 @@ static MUUID miid_servicemode = MIID_SERVICEMODE;
static int validInterfaceList(Miranda_Plugin_Interfaces ifaceProc)
{
MUUID *piface = ( ifaceProc ) ? ifaceProc() : NULL;
- int i = 0/*, j*/;
+ int i = 0/*, j*/;
if (!piface)
return 0;
if (equalUUID(miid_last, piface[0]))
return 0;
- /*while (!equalUUID(miid_last, piface[i]) ) {
- for (j=0; j<interfaceBannedListCount; j++) {
- if (equalUUID(interfaceBannedList[j].uuid, piface[i]))
- return 0;
- i++;
- }
- break;
- }*/
return 1;
}