diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/ExternalAPI | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/m_assocmgr.h | 4 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_flags.h | 4 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_help.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_mails.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ExternalAPI/m_assocmgr.h b/plugins/ExternalAPI/m_assocmgr.h index 4e15168643..4cb02bb74b 100644 --- a/plugins/ExternalAPI/m_assocmgr.h +++ b/plugins/ExternalAPI/m_assocmgr.h @@ -273,13 +273,13 @@ Returns 0 on success, nonzero otherwise. static __inline char *Netlib_UrlDecode(char *str)
{
char *psz=str;
- for(;*psz;++psz)
+ for (;*psz;++psz)
switch(*psz) {
case '+':
*psz=' ';
break;
case '%':
- if(!psz[1] || !psz[2]) break;
+ if (!psz[1] || !psz[2]) break;
MoveMemory(psz,&psz[1],2);
psz[2]=0;
*psz=(char)strtol(psz,NULL,16);
diff --git a/plugins/ExternalAPI/m_flags.h b/plugins/ExternalAPI/m_flags.h index aafa2fb251..9760c1b419 100644 --- a/plugins/ExternalAPI/m_flags.h +++ b/plugins/ExternalAPI/m_flags.h @@ -47,11 +47,11 @@ Returns a icon handle (HICON) on success, NULL on error. #if !defined(FLAGS_NOHELPERFUNCTIONS)
__inline static HICON LoadFlagIcon(int countryNumber) {
- if(!ServiceExists(MS_FLAGS_LOADFLAGICON)) return NULL;
+ if (!ServiceExists(MS_FLAGS_LOADFLAGICON)) return NULL;
return (HICON)CallService(MS_FLAGS_LOADFLAGICON,countryNumber,0);
}
__inline static HANDLE LoadFlagIconHandle(int countryNumber) {
- if(!ServiceExists(MS_FLAGS_LOADFLAGICON)) return NULL;
+ if (!ServiceExists(MS_FLAGS_LOADFLAGICON)) return NULL;
return (HICON)CallService(MS_FLAGS_LOADFLAGICON,countryNumber,1);
}
#endif
diff --git a/plugins/ExternalAPI/m_help.h b/plugins/ExternalAPI/m_help.h index 04425a5e8d..fa7434695f 100644 --- a/plugins/ExternalAPI/m_help.h +++ b/plugins/ExternalAPI/m_help.h @@ -60,7 +60,7 @@ Returns 0 on success or nonzero on failure // only works for non-editable
#if !defined(HELP_NOHELPERFUNCTIONS)
__inline static int Help_SetContextState(HWND hwndCtl,DWORD flags) {
- if(!ServiceExists(MS_HELP_SETCONTEXTSTATE)) return -1;
+ if (!ServiceExists(MS_HELP_SETCONTEXTSTATE)) return -1;
return CallService(MS_HELP_SETCONTEXTSTATE,(WPARAM)hwndCtl,flags);
}
#endif
diff --git a/plugins/ExternalAPI/m_mails.h b/plugins/ExternalAPI/m_mails.h index 06bd9dfd80..cb168e34e9 100644 --- a/plugins/ExternalAPI/m_mails.h +++ b/plugins/ExternalAPI/m_mails.h @@ -147,7 +147,7 @@ typedef struct CMimeMsgQueue void *PluginData;
CMimeMsgQueue(): ID(NULL), Number(0), Flags(0), MailData(NULL), MsgWindow(NULL), PluginData(NULL), Next(NULL){}
- ~CMimeMsgQueue(){}
+ ~CMimeMsgQueue() {}
struct CMimeMsgQueue *Next;
} YAMNMAIL,*HYAMNMAIL;
|