summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_disco.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-26 15:19:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-26 15:19:44 +0000
commit324b246fb23cd518bdd1907985c695b8fc4f28d2 (patch)
treeb41cb8a3e91484e1677f11e1a0693075cb8382f5 /protocols/JabberG/src/jabber_disco.cpp
parent65cc377f4b4161dee01c43e0430ff7b236874839 (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6241 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_disco.cpp')
-rw-r--r--protocols/JabberG/src/jabber_disco.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_disco.cpp b/protocols/JabberG/src/jabber_disco.cpp
index 0f73122e4b..c96dc4fdad 100644
--- a/protocols/JabberG/src/jabber_disco.cpp
+++ b/protocols/JabberG/src/jabber_disco.cpp
@@ -441,7 +441,7 @@ void CJabberProto::PerformBrowse(HWND hwndDlg)
else if ( !lstrcmp(szJid, _T(SD_FAKEJID_FAVORITES))) {
sttBrowseMode = SD_BROWSE_FAVORITES;
int count = getDword("discoWnd_favCount", 0);
- for (int i = 0; i < count; i++)
+ for (int i=0; i < count; i++)
{
DBVARIANT dbv;
char setting[MAXMODULELABELLENGTH];
@@ -508,7 +508,7 @@ void CJabberProto::ApplyNodeIcon(HTREELISTITEM hItem, CJabberSDNode *pNode)
iOverlay = SD_OVERLAY_NONE;
}
- for (int i = 0; i < SIZEOF(sttNodeIcons); i++)
+ for (int i=0; i < SIZEOF(sttNodeIcons); i++)
{
if ( !sttNodeIcons[i].iconIndex && !sttNodeIcons[i].iconName) continue;
@@ -680,7 +680,7 @@ void CJabberDlgDiscovery::OnInitDialog()
TreeList_Create(hwndList);
TreeList_AddIcon(hwndList, m_proto->LoadIconEx("main"), 0);
- for (i = 0; i < SIZEOF(sttNodeIcons); i++)
+ for (i=0; i < SIZEOF(sttNodeIcons); i++)
{
bool needDestroy = false;
HICON hIcon;
@@ -801,7 +801,7 @@ void CJabberDlgDiscovery::btnBookmarks_OnClick(CCtrlButton *)
{
HMENU hMenu = CreatePopupMenu();
int count = m_proto->getDword("discoWnd_favCount", 0);
- for (int i = 0; i < count; i++) {
+ for (int i=0; i < count; i++) {
char setting[MAXMODULELABELLENGTH];
mir_snprintf(setting, sizeof(setting), "discoWnd_favName_%d", i);
@@ -867,7 +867,7 @@ void CJabberDlgDiscovery::btnBookmarks_OnClick(CCtrlButton *)
if (res == 1)
{
int count = m_proto->getDword("discoWnd_favCount", 0);
- for (int i = 0; i < count; i++)
+ for (int i=0; i < count; i++)
{
char setting[MAXMODULELABELLENGTH];
mir_snprintf(setting, sizeof(setting), "discoWnd_favName_%d", i);
@@ -1216,7 +1216,7 @@ void CJabberProto::ServiceDiscoveryShowMenu(CJabberSDNode *pNode, HTREELISTITEM
HMENU hMenu = CreatePopupMenu();
BOOL lastSeparator = TRUE;
bool bFilterItems = !GetAsyncKeyState(VK_CONTROL);
- for (int i = 0; i < SIZEOF(items); i++) {
+ for (int i=0; i < SIZEOF(items); i++) {
JABBER_LIST_ITEM *rosterItem = NULL;
if (bFilterItems) {
if ((items[i].flags & SD_FLG_NONODE) && pNode->GetNode())