summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/llui/llnotifications.h15
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());
}