diff options
author | McCabe Maxsted | 2011-04-13 17:23:32 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-13 17:23:32 -0700 |
commit | 36934849d9bc886ccff1d33316ef9f5e2278ce9b (patch) | |
tree | 88c1ad54e37be071e5080c0550c6b4a5b6bd1da9 | |
parent | Don't create temporary vectors in spellchecking on every draw (diff) | |
download | meta-impy-36934849d9bc886ccff1d33316ef9f5e2278ce9b.zip meta-impy-36934849d9bc886ccff1d33316ef9f5e2278ce9b.tar.gz meta-impy-36934849d9bc886ccff1d33316ef9f5e2278ce9b.tar.bz2 meta-impy-36934849d9bc886ccff1d33316ef9f5e2278ce9b.tar.xz |
Don't create temporary LLRect objects for spellchecking in every draw either
-rw-r--r-- | linden/indra/llui/lllineeditor.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llui/lllineeditor.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llui/lllineeditor.cpp b/linden/indra/llui/lllineeditor.cpp index 719b71a..453bb50 100644 --- a/linden/indra/llui/lllineeditor.cpp +++ b/linden/indra/llui/lllineeditor.cpp | |||
@@ -2038,7 +2038,7 @@ void LLLineEditor::autoCorrectText() | |||
2038 | } | 2038 | } |
2039 | } | 2039 | } |
2040 | 2040 | ||
2041 | void LLLineEditor::drawMisspelled(LLRect background) | 2041 | void LLLineEditor::drawMisspelled(const LLRect& background) |
2042 | { | 2042 | { |
2043 | if (!mReadOnly && mSpellCheckable) | 2043 | if (!mReadOnly && mSpellCheckable) |
2044 | { | 2044 | { |
diff --git a/linden/indra/llui/lllineeditor.h b/linden/indra/llui/lllineeditor.h index 677d1b1..b3e21ce 100644 --- a/linden/indra/llui/lllineeditor.h +++ b/linden/indra/llui/lllineeditor.h | |||
@@ -159,7 +159,7 @@ public: | |||
159 | // view overrides | 159 | // view overrides |
160 | virtual void draw(); | 160 | virtual void draw(); |
161 | void autoCorrectText(); | 161 | void autoCorrectText(); |
162 | void drawMisspelled(LLRect background); | 162 | void drawMisspelled(const LLRect& background); |
163 | virtual void reshape(S32 width,S32 height,BOOL called_from_parent=TRUE); | 163 | virtual void reshape(S32 width,S32 height,BOOL called_from_parent=TRUE); |
164 | virtual void onFocusReceived(); | 164 | virtual void onFocusReceived(); |
165 | virtual void onFocusLost(); | 165 | virtual void onFocusLost(); |