summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterworldmap.cpp
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2011-04-16 16:49:47 -0400
committerJonathan Yap <none@none>2011-04-16 16:49:47 -0400
commitdef000ea49cb4bed7894d1534ce80d6753cbefdc (patch)
treebc4da78ae93be4c6a581d7b5f9c11f211889ad4c /indra/newview/llfloaterworldmap.cpp
parent8c797002cf3900114693786b8816daec6e651680 (diff)
STORM-1128 Made a few code changes suggested in code review comments.
Diffstat (limited to 'indra/newview/llfloaterworldmap.cpp')
-rwxr-xr-xindra/newview/llfloaterworldmap.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp
index 3e5842e5f0..2672747605 100755
--- a/indra/newview/llfloaterworldmap.cpp
+++ b/indra/newview/llfloaterworldmap.cpp
@@ -73,6 +73,7 @@
#include "llslider.h"
#include "message.h"
#include "llwindow.h" // copyTextToClipboard()
+#include <algorithm>
//---------------------------------------------------------------------------
// Constants
@@ -85,11 +86,11 @@ static const F32 MAP_ZOOM_TIME = 0.2f;
// Currently (01/26/09), this value allows the whole grid to be visible in a 1024x1024 window.
static const S32 MAX_VISIBLE_REGIONS = 512;
-// It would be more logical to have this inside the method where it is used but to compile under gcc this
+// It would be more logical to have this inside the method where it is used but to compile under gcc this
// struct has to be here.
struct SortRegionNames
{
- inline bool operator ()(const std::pair <U64, LLSimInfo*>& _left, const std::pair <U64, LLSimInfo*>& _right)
+ inline bool operator ()(std::pair <U64, LLSimInfo*> const& _left, std::pair <U64, LLSimInfo*> const& _right)
{
return(LLStringUtil::compareInsensitive(_left.second->getName(),_right.second->getName()) < 0);
}