Changeset 6031
- Timestamp:
- 01/13/08 02:17:31 (10 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/qt-gui_qt4/src/userevents/usersendcommon.cpp
r5937 r6031 81 81 using std::pair; 82 82 using std::make_pair; 83 using std::binary_function;84 83 using namespace LicqQtGui; 85 84 /* TRANSLATOR LicqQtGui::UserSendCommon */ … … 89 88 typedef pair<CUserEvent*, char*> messagePair; 90 89 91 struct orderMessagePairs 92 : public binary_function<const messagePair&, const messagePair&, bool> 93 { 94 bool operator()(const messagePair& mp1, const messagePair& mp2) 95 { 96 return (mp1.first->Time() <= mp2.first->Time()); 97 } 98 }; 90 bool orderMessagePairs(const messagePair& mp1, const messagePair& mp2) 91 { 92 return (mp1.first->Time() < mp2.first->Time()); 93 } 99 94 100 95 UserSendCommon::UserSendCommon(int type, QString id, unsigned long ppid, QWidget* parent, const char* name) … … 365 360 366 361 // Sort the messages by time 367 s ort(messages.begin(), messages.end(), orderMessagePairs());362 stable_sort(messages.begin(), messages.end(), orderMessagePairs); 368 363 369 364 // Now, finally add them
