diff options
author | Paul ProductEngine <pguslisty@productengine.com> | 2012-05-22 20:34:34 +0300 |
---|---|---|
committer | Paul ProductEngine <pguslisty@productengine.com> | 2012-05-22 20:34:34 +0300 |
commit | 4dffa3351401bd8ba8326958b38a3d500805b5d1 (patch) | |
tree | d624fb1c4c10aa133e14841806757aab82a5f017 /indra/llui | |
parent | f89d94434c6e9d96ad71586d55c2b32d933a1e05 (diff) |
Linux build fix
GCC does not allow local functor classes to be used with template algorithms, because template arguments must refer to an entity with external linkage.
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llnotifications.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/indra/llui/llnotifications.h b/indra/llui/llnotifications.h index 783e9ffc88..12479f0788 100644 --- a/indra/llui/llnotifications.h +++ b/indra/llui/llnotifications.h @@ -1021,15 +1021,16 @@ public: private: - void sortHistory() + struct sortByTime { - struct sortByTime + S32 operator ()(const LLNotificationPtr& a, const LLNotificationPtr& b) { - S32 operator ()(const LLNotificationPtr& a, const LLNotificationPtr& b) - { - return a->getDate() < b->getDate(); - } - }; + return a->getDate() < b->getDate(); + } + }; + + void sortHistory() + { std::sort(mHistory.begin(), mHistory.end(), sortByTime()); } |