Changeset 6033 for trunk/qt-gui

Show
Ignore:
Timestamp:
01/13/08 18:50:45 (10 months ago)
Author:
eugene
Message:

Replicated r6031.

Location:
trunk/qt-gui/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/usereventdlg.cpp

    r5944 r6033  
    105105 
    106106const size_t SHOW_RECENT_NUM = 5; 
     107 
     108typedef pair<CUserEvent *, char *> MessageIter; 
     109 
     110bool OrderMessages(const MessageIter& m1, const MessageIter& m2) 
     111{ 
     112  return (m1.first->Time() < m2.first->Time()); 
     113} 
    107114 
    108115// ----------------------------------------------------------------------------- 
     
    16981705 
    16991706      // Sort the messages by time 
    1700       sort(m_vMsgs.begin(), m_vMsgs.end(), OrderMessages()); 
     1707      stable_sort(m_vMsgs.begin(), m_vMsgs.end(), OrderMessages); 
    17011708     
    17021709      // Now, finally add them 
  • trunk/qt-gui/src/usereventdlg.h

    r5779 r6033  
    3030#include <utility> 
    3131 
    32 using std::binary_function; 
    3332using std::list; 
    34 using std::pair; 
    35 using std::string; 
    3633 
    3734#include "licq_color.h" 
     
    7673 
    7774/* ----------------------------------------------------------------------------- */ 
    78 typedef pair<CUserEvent *, char *> MessageIter; 
    79  
    80 struct OrderMessages : public binary_function<const MessageIter &, const MessageIter &, bool> 
    81 { 
    82   bool operator()(const MessageIter& m1, const MessageIter& m2) 
    83   { 
    84     return (m1.first->Time() < m2.first->Time()); 
    85   } 
    86 }; 
    87  
    88 /* ----------------------------------------------------------------------------- */ 
    8975class UserEventTabDlg : public QWidget 
    9076{