summaryrefslogtreecommitdiff
path: root/indra/llui/lltexteditor.cpp
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-08-04 01:39:33 +0000
committerRichard Nelson <richard@lindenlab.com>2009-08-04 01:39:33 +0000
commit89434ef6e64462041368ab26e049011fc84ae1e3 (patch)
tree746fee8eb7bd02765ef9f389ecb7f5943acbe3a1 /indra/llui/lltexteditor.cpp
parenteb853f55c07ae4a3c3f2aa05fbabcf2e4b4dc115 (diff)
fix for broken build
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rw-r--r--indra/llui/lltexteditor.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 547461f22a..48816e4b9e 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -389,15 +389,6 @@ void LLTextEditor::setThumbColor( const LLColor4& color )
mScrollbar->setThumbColor(color);
}
-struct LLTextEditor::pred
-{
- bool operator()(const std::pair<S32, S32>& b, const LLTextEditor::line_info& a)
- {
- return a.mSegment > 0;
- }
-
-};
-
void LLTextEditor::updateLineStartList(S32 startpos)
{
updateSegments();
@@ -413,7 +404,7 @@ void LLTextEditor::updateLineStartList(S32 startpos)
{
getSegmentAndOffset(startpos, &seg_idx, &seg_offset);
line_info t(seg_idx, seg_offset);
- line_list_t::iterator iter = std::upper_bound(mLineStartList.begin(), mLineStartList.end(), std::make_pair(seg_idx, seg_offset), pred());
+ line_list_t::iterator iter = std::upper_bound(mLineStartList.begin(), mLineStartList.end(), t, line_info_compare());
if (iter != mLineStartList.begin()) --iter;
seg_idx = iter->mSegment;
seg_offset = iter->mOffset;