diff options
author | Richard Nelson <richard@lindenlab.com> | 2009-08-24 23:50:37 +0000 |
---|---|---|
committer | Richard Nelson <richard@lindenlab.com> | 2009-08-24 23:50:37 +0000 |
commit | 7e0f7a0193f69a3f4e9e95a2f32e9aae9e035920 (patch) | |
tree | a23bffa9a6ebba7b88f0a62e9dd7717800abd507 | |
parent | 138bf1132262c479dbbd5c95195db46b1efd065f (diff) |
attempt at fix for windows build error
reviewed by James
-rw-r--r-- | indra/llui/lltexteditor.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 7d13220c94..a97899f270 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -94,6 +94,12 @@ struct LLTextEditor::compare_bottom { return a.mBottom > b; // bottom of a is higher than bottom of b } + + bool operator()(const LLTextEditor::line_info& a, const LLTextEditor::line_info& b) const + { + return a.mBottom > b.mBottom; // bottom of a is higher than bottom of b + } + }; // helper functors @@ -108,6 +114,11 @@ struct LLTextEditor::compare_top { return a.mTop > b; // top of a is higher than top of b } + + bool operator()(const LLTextEditor::line_info& a, const LLTextEditor::line_info& b) const + { + return a.mTop > b.mTop; // top of a is higher than top of b + } }; struct LLTextEditor::line_end_compare @@ -122,6 +133,11 @@ struct LLTextEditor::line_end_compare return (info.mDocIndexEnd < pos); } + bool operator()(const LLTextEditor::line_info& a, const LLTextEditor::line_info& b) const + { + return (a.mDocIndexEnd < b.mDocIndexEnd); + } + }; // |