diff --git a/indra/newview/llnotificationhandlerutil.cpp b/indra/newview/llnotificationhandlerutil.cpp
index 546017f0286dc0bc3527abf495e28fc70c66868c..88bb769109530adc7ab6af0b19d325ac356f8725 100644
--- a/indra/newview/llnotificationhandlerutil.cpp
+++ b/indra/newview/llnotificationhandlerutil.cpp
@@ -82,7 +82,7 @@ void LLSysHandler::removeExclusiveNotifications(const LLNotificationPtr& notif)
 		}
 		bool matches(const LLNotificationPtr notification) const
 		{
-			for (std::set<std::string>::iterator it = mExclGroup.begin(); it
+			for (std::set<std::string>::const_iterator it = mExclGroup.begin(); it
 					!= mExclGroup.end(); it++)
 			{
 				std::string from_name = LLHandlerUtil::getSubstitutionName(notification);