Ticket #1387: warnings-qt-gui-2006-09-02.patch
| File warnings-qt-gui-2006-09-02.patch, 1.4 kB (added by root_42, 2 years ago) |
|---|
-
src/editgrp.cpp
166 166 if (n < 0 /* || n == max */) return; 167 167 gUserManager.SwapGroups(n + 1, n + 2); 168 168 RefreshList(); 169 if (n + 2 >= lstGroups->count())169 if (n + 2 >= int(lstGroups->count())) 170 170 lstGroups->setCurrentItem(lstGroups->count() - 1); 171 171 else 172 172 lstGroups->setCurrentItem(n + 2); -
src/usereventdlg.cpp
99 99 using std::pair; 100 100 using std::make_pair; 101 101 102 const int SHOW_RECENT_NUM = 5;102 const size_t SHOW_RECENT_NUM = 5; 103 103 104 104 // ----------------------------------------------------------------------------- 105 105 UserEventCommon::UserEventCommon(CICQDaemon *s, CSignalManager *theSigMan, … … 1620 1620 // Make sure we don't show the new messages waiting. 1621 1621 unsigned short nNewMessages = u->NewMessages(); 1622 1622 HistoryListIter lHistoryIter = lHistoryList.end(); 1623 for ( int i = 0; i < (SHOW_RECENT_NUM + nNewMessages) && lHistoryIter != lHistoryList.begin(); i++)1623 for (size_t i = 0; i < (SHOW_RECENT_NUM + nNewMessages) && lHistoryIter != lHistoryList.begin(); i++) 1624 1624 lHistoryIter--; 1625 1625 1626 1626 bool bUseHTML = !isdigit((m_lUsers.front().c_str())[1]);
