summaryrefslogtreecommitdiff
path: root/plugins/YAMN/services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/YAMN/services.cpp
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/services.cpp')
-rw-r--r--plugins/YAMN/services.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/YAMN/services.cpp b/plugins/YAMN/services.cpp
index 975c6627e9..b0b524eddc 100644
--- a/plugins/YAMN/services.cpp
+++ b/plugins/YAMN/services.cpp
@@ -382,12 +382,12 @@ void HookEvents(void)
//We set function which registers needed POP3 accounts. This is a part of internal POP3 plugin.
//Your plugin should do the same task in your Load fcn. Why we call it in MODULESLOADED? Because netlib
//user can be registered after all modules are loaded (see m_netlib.h in Miranda)
- for (int i = 0;hookData[i].hookName;i++){
+ for (int i = 0;hookData[i].hookName;i++) {
hookData[i].hookHandle = HookEvent(hookData[i].hookName, hookData[i].mirandaFunction);
}
}
void UnhookEvents(void){
- for (int i = 0;i<(sizeof(hookData)/sizeof(hookData[0]));i++){
+ for (int i = 0;i<(sizeof(hookData)/sizeof(hookData[0]));i++) {
if (hookData[i].hookHandle) UnhookEvent(hookData[i].hookHandle);
}
}
@@ -480,14 +480,14 @@ static ServiceDataType serviceData[] = {
void CreateServiceFunctions(void)
{
- for (int i = 0;serviceData[i].serviceName;i++){
+ for (int i = 0;serviceData[i].serviceName;i++) {
serviceData[i].serviceHandle = CreateServiceFunction(serviceData[i].serviceName, serviceData[i].serviceFunction);
}
};
void DestroyServiceFunctions(void)
{
- for (int i = 0;serviceData[i].serviceName;i++){
+ for (int i = 0;serviceData[i].serviceName;i++) {
if (serviceData[i].serviceHandle) DestroyServiceFunction(serviceData[i].serviceHandle);
}
};