diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-26 15:19:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-26 15:19:44 +0000 |
commit | 324b246fb23cd518bdd1907985c695b8fc4f28d2 (patch) | |
tree | b41cb8a3e91484e1677f11e1a0693075cb8382f5 /protocols/JabberG/src/jabber_xstatus.cpp | |
parent | 65cc377f4b4161dee01c43e0430ff7b236874839 (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_xstatus.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_xstatus.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_xstatus.cpp b/protocols/JabberG/src/jabber_xstatus.cpp index e610fa4f7b..e220c14302 100644 --- a/protocols/JabberG/src/jabber_xstatus.cpp +++ b/protocols/JabberG/src/jabber_xstatus.cpp @@ -226,7 +226,7 @@ void CJabberDlgPepSimple::OnInitDialog() SetWindowText(m_hwnd, m_title);
m_txtDescription.Enable(false);
- for (int i = 0; i < m_modes.getCount(); i++) {
+ for (int i=0; i < m_modes.getCount(); i++) {
int idx = m_cbModes.AddString(m_modes[i].m_title, i);
if ((m_modes[i].m_id == m_active) || !idx) {
m_prevSelected = idx;
@@ -638,7 +638,7 @@ void CPepMood::ProcessItems(const TCHAR *from, HXML itemsNode) if ( !moodNode) return;
LPCTSTR moodType = NULL, moodText = NULL;
- for (int i = 0; n = xmlGetChild(moodNode, i); i++) {
+ for (int i=0; n = xmlGetChild(moodNode, i); i++) {
if ( !_tcscmp(xmlGetName(n), _T("text")))
moodText = xmlGetText(n);
else
@@ -1020,7 +1020,7 @@ void CPepActivity::ProcessItems(const TCHAR *from, HXML itemsNode) LPCTSTR szFirstNode = NULL, szSecondNode = NULL;
HXML n;
- for (int i = 0; n = xmlGetChild(actNode, i); i++) {
+ for (int i=0; n = xmlGetChild(actNode, i); i++) {
if (lstrcmp(xmlGetName(n), _T("text"))) {
szFirstNode = xmlGetName(n);
HXML secondNode = xmlGetChild(n, 0);
@@ -1112,7 +1112,7 @@ void CPepActivity::SetActivity(HANDLE hContact, LPCTSTR szFirst, LPCTSTR szSecon void CPepActivity::ShowSetDialog(BYTE bQuiet)
{
CJabberDlgPepSimple dlg(m_proto, TranslateT("Set Activity"));
- for (int i = 0; i < SIZEOF(g_arrActivities); i++)
+ for (int i=0; i < SIZEOF(g_arrActivities); i++)
if (g_arrActivities[i].szFirst || g_arrActivities[i].szSecond)
dlg.AddStatusMode(i, ActivityGetId(i), g_ActivityIcons.GetIcon(returnActivity(i)), TranslateTS(g_arrActivities[i].szTitle), (g_arrActivities[i].szSecond != NULL));
|