diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-29 14:19:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-29 14:19:12 +0000 |
commit | c1840425166576b1cf187076a9344a78a20375b6 (patch) | |
tree | 7c7e1d66219c7b2ed6b57a397ac67b3541aa127e /plugins/TabSRMM/include | |
parent | d80ee102fba0f99ad2ab0e0e734267f76b3b639e (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/include')
-rw-r--r-- | plugins/TabSRMM/include/controls.h | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/include/globals.h | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/include/infopanel.h | 6 | ||||
-rw-r--r-- | plugins/TabSRMM/include/mim.h | 4 | ||||
-rw-r--r-- | plugins/TabSRMM/include/sendlater.h | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/include/sendqueue.h | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/include/sidebar.h | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/include/taskbar.h | 6 | ||||
-rw-r--r-- | plugins/TabSRMM/include/utils.h | 8 |
9 files changed, 17 insertions, 17 deletions
diff --git a/plugins/TabSRMM/include/controls.h b/plugins/TabSRMM/include/controls.h index f20dbf076a..da7544beb4 100644 --- a/plugins/TabSRMM/include/controls.h +++ b/plugins/TabSRMM/include/controls.h @@ -86,7 +86,7 @@ public: const int idToIndex(const int id) const
{
for(int i = 0; i < NR_BUTTONS; i++) {
- if(m_TbButtons[i].idCommand == id )
+ if (m_TbButtons[i].idCommand == id )
return(i);
}
return(-1);
diff --git a/plugins/TabSRMM/include/globals.h b/plugins/TabSRMM/include/globals.h index f399fbe359..6896304d5d 100644 --- a/plugins/TabSRMM/include/globals.h +++ b/plugins/TabSRMM/include/globals.h @@ -88,7 +88,7 @@ public: ~CGlobals()
{
- if(m_MenuBar)
+ if (m_MenuBar)
::DestroyMenu(m_MenuBar);
CContactCache* c = CContactCache::m_cCache, *cTemp;
diff --git a/plugins/TabSRMM/include/infopanel.h b/plugins/TabSRMM/include/infopanel.h index 47e7345f53..85a38adbdd 100644 --- a/plugins/TabSRMM/include/infopanel.h +++ b/plugins/TabSRMM/include/infopanel.h @@ -79,7 +79,7 @@ public: CTip (const HWND hwndParent, const HANDLE hContact, const TCHAR *pszText = 0, const CInfoPanel *panel = 0);
~CTip()
{
- if(m_pszText)
+ if (m_pszText)
mir_free(m_pszText);
}
void show (const RECT& rc, POINT& pt, const HICON hIcon = 0, const TCHAR *szTitle = 0);
@@ -135,7 +135,7 @@ public: };
CInfoPanel(TWindowData *dat)
{
- if(dat) {
+ if (dat) {
m_dat = dat;
m_isChat = dat->bType == SESSIONTYPE_CHAT ? true : false;
}
@@ -148,7 +148,7 @@ public: ~CInfoPanel()
{
- if(m_hwndConfig)
+ if (m_hwndConfig)
::DestroyWindow(m_hwndConfig);
saveHeight(true);
}
diff --git a/plugins/TabSRMM/include/mim.h b/plugins/TabSRMM/include/mim.h index 9ce72e3e69..9bee54ffbd 100644 --- a/plugins/TabSRMM/include/mim.h +++ b/plugins/TabSRMM/include/mim.h @@ -117,7 +117,7 @@ public: if (m_haveBufferedPaint)
m_pfnBufferedPaintUninit();
- if(m_hChatLogLock != INVALID_HANDLE_VALUE)
+ if (m_hChatLogLock != INVALID_HANDLE_VALUE)
CloseHandle(m_hChatLogLock);
}
@@ -292,7 +292,7 @@ inline void CMimAPI::stopTimer(const char *szMsg) {
::QueryPerformanceCounter((LARGE_INTEGER *)&m_tStop);
- if(szMsg)
+ if (szMsg)
timerMsg(szMsg);
}
diff --git a/plugins/TabSRMM/include/sendlater.h b/plugins/TabSRMM/include/sendlater.h index b4ce12880f..fc3bb4d087 100644 --- a/plugins/TabSRMM/include/sendlater.h +++ b/plugins/TabSRMM/include/sendlater.h @@ -108,7 +108,7 @@ public: void flushQueue() { m_last_sendlater_processed = 0; }
bool haveJobs() const
{
- if(m_sendLaterJobList.empty() || m_jobIterator == m_sendLaterJobList.end())
+ if (m_sendLaterJobList.empty() || m_jobIterator == m_sendLaterJobList.end())
return(false);
else
return(true);
diff --git a/plugins/TabSRMM/include/sendqueue.h b/plugins/TabSRMM/include/sendqueue.h index 9914e241f8..a829b8ab82 100644 --- a/plugins/TabSRMM/include/sendqueue.h +++ b/plugins/TabSRMM/include/sendqueue.h @@ -79,7 +79,7 @@ public: ~SendQueue()
{
for(int i = 0; i < NR_SENDJOBS; i++) {
- if(m_jobs[i].sendBuffer)
+ if (m_jobs[i].sendBuffer)
free(m_jobs[i].sendBuffer);
}
}
diff --git a/plugins/TabSRMM/include/sidebar.h b/plugins/TabSRMM/include/sidebar.h index 4cc60be747..5cd4d4aa80 100644 --- a/plugins/TabSRMM/include/sidebar.h +++ b/plugins/TabSRMM/include/sidebar.h @@ -161,7 +161,7 @@ public: {
CSideBarButton *oldItem = m_activeItem;
m_activeItem = const_cast<CSideBarButton *>(newItem);
- if(oldItem)
+ if (oldItem)
::InvalidateRect(oldItem->getHwnd(), NULL, FALSE);
::InvalidateRect(m_activeItem->getHwnd(), NULL, FALSE);
scrollIntoView(m_activeItem);
diff --git a/plugins/TabSRMM/include/taskbar.h b/plugins/TabSRMM/include/taskbar.h index 1b1725d48f..5f48fdd756 100644 --- a/plugins/TabSRMM/include/taskbar.h +++ b/plugins/TabSRMM/include/taskbar.h @@ -142,10 +142,10 @@ public: m_IconSize = 0;
m_isEnabled = IsWinVer7Plus() ? true : false;
- if(m_isEnabled) {
+ if (m_isEnabled) {
::CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_ALL, IID_ITaskbarList3, (void**)&m_pTaskbarInterface);
updateMetrics();
- if(0 == m_pTaskbarInterface)
+ if (0 == m_pTaskbarInterface)
m_isEnabled = false;
}
@@ -164,7 +164,7 @@ public: ~CTaskbarInteract()
{
- if(m_isEnabled && m_pTaskbarInterface) {
+ if (m_isEnabled && m_pTaskbarInterface) {
m_pTaskbarInterface->Release();
m_pTaskbarInterface = 0;
m_isEnabled = false;
diff --git a/plugins/TabSRMM/include/utils.h b/plugins/TabSRMM/include/utils.h index fd101c0aca..1d66a0c650 100644 --- a/plugins/TabSRMM/include/utils.h +++ b/plugins/TabSRMM/include/utils.h @@ -120,7 +120,7 @@ public: HGLOBAL hData;
if (!OpenClipboard(hwndOwner) || _t == 0)
- return(0);
+ return 0;
std::basic_string<T> *s = new std::basic_string<T>(_t);
size_t _s = sizeof(T);
@@ -144,7 +144,7 @@ public: *pppFiles = (T**)mir_realloc(*pppFiles, (++*totalCount + 1) * sizeof(T*));
(*pppFiles)[*totalCount] = NULL;
- if(_s == 1)
+ if (_s == 1)
(*pppFiles)[*totalCount-1] = reinterpret_cast<T *>(mir_t2a(szFilename));
else
(*pppFiles)[*totalCount-1] = reinterpret_cast<T *>(mir_tstrdup(szFilename));
@@ -184,8 +184,8 @@ public: while(s < maxlen && *(src++))
s++;
- if(s >= maxlen && *src != 0)
- return(0);
+ if (s >= maxlen && *src != 0)
+ return 0;
else
return(s);
}
|