From 4dffa3351401bd8ba8326958b38a3d500805b5d1 Mon Sep 17 00:00:00 2001
From: Paul ProductEngine <pguslisty@productengine.com>
Date: Tue, 22 May 2012 20:34:34 +0300
Subject: 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.
---
 indra/llui/llnotifications.h | 15 ++++++++-------
 1 file 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());
 	}
 
-- 
cgit v1.2.3