MAINT-8474: Xcode 9.3 insists that comparators use const operator().

Sat, 31 Mar 2018 10:59:39 -0400

author
Nat Goodspeed <nat@lindenlab.com>
date
Sat, 31 Mar 2018 10:59:39 -0400
changeset 55093
61f735a3e4bf
parent 54952
d96226d41736
child 55096
cfe9b2a47671

MAINT-8474: Xcode 9.3 insists that comparators use const operator().

indra/llui/llnotifications.h file | annotate | diff | revisions
indra/newview/lltextureview.cpp file | annotate | diff | revisions
indra/newview/llviewerregion.h file | annotate | diff | revisions
indra/newview/llvocache.h file | annotate | diff | revisions
     1.1 --- a/indra/llui/llnotifications.h	Thu Mar 01 16:51:48 2018 -0500
     1.2 +++ b/indra/llui/llnotifications.h	Sat Mar 31 10:59:39 2018 -0400
     1.3 @@ -703,7 +703,7 @@
     1.4  {
     1.5  	struct orderByUUID
     1.6  	{
     1.7 -		bool operator()(LLNotificationPtr lhs, LLNotificationPtr rhs)
     1.8 +		bool operator()(LLNotificationPtr lhs, LLNotificationPtr rhs) const
     1.9  		{
    1.10  			return lhs->id() < rhs->id();
    1.11  		}
     2.1 --- a/indra/newview/lltextureview.cpp	Thu Mar 01 16:51:48 2018 -0500
     2.2 +++ b/indra/newview/lltextureview.cpp	Sat Mar 31 10:59:39 2018 -0400
     2.3 @@ -736,7 +736,7 @@
     2.4  typedef std::pair<F32,LLViewerFetchedTexture*> decode_pair_t;
     2.5  struct compare_decode_pair
     2.6  {
     2.7 -	bool operator()(const decode_pair_t& a, const decode_pair_t& b)
     2.8 +	bool operator()(const decode_pair_t& a, const decode_pair_t& b) const
     2.9  	{
    2.10  		return a.first > b.first;
    2.11  	}
     3.1 --- a/indra/newview/llviewerregion.h	Thu Mar 01 16:51:48 2018 -0500
     3.2 +++ b/indra/newview/llviewerregion.h	Sat Mar 31 10:59:39 2018 -0400
     3.3 @@ -440,7 +440,7 @@
     3.4  
     3.5  	struct CompareRegionByLastUpdate
     3.6  	{
     3.7 -		bool operator()(const LLViewerRegion* const& lhs, const LLViewerRegion* const& rhs)
     3.8 +		bool operator()(const LLViewerRegion* const& lhs, const LLViewerRegion* const& rhs) const
     3.9  		{
    3.10  			S32 lpa = lhs->getLastUpdate();
    3.11  			S32 rpa = rhs->getLastUpdate();
     4.1 --- a/indra/newview/llvocache.h	Thu Mar 01 16:51:48 2018 -0500
     4.2 +++ b/indra/newview/llvocache.h	Sat Mar 31 10:59:39 2018 -0400
     4.3 @@ -59,7 +59,7 @@
     4.4  
     4.5  	struct CompareVOCacheEntry
     4.6  	{
     4.7 -		bool operator()(const LLVOCacheEntry* const& lhs, const LLVOCacheEntry* const& rhs)
     4.8 +		bool operator()(const LLVOCacheEntry* const& lhs, const LLVOCacheEntry* const& rhs) const
     4.9  		{
    4.10  			F32 lpa = lhs->getSceneContribution();
    4.11  			F32 rpa = rhs->getSceneContribution();

mercurial