From 36934849d9bc886ccff1d33316ef9f5e2278ce9b Mon Sep 17 00:00:00 2001
From: McCabe Maxsted
Date: Wed, 13 Apr 2011 17:23:32 -0700
Subject: Don't create temporary LLRect objects for spellchecking in every draw
 either

---
 linden/indra/llui/lllineeditor.cpp | 2 +-
 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()
 	}
 }
 
-void LLLineEditor::drawMisspelled(LLRect background)
+void LLLineEditor::drawMisspelled(const LLRect& background)
 {
 	if (!mReadOnly && mSpellCheckable)
 	{
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:
 	// view overrides
 	virtual void	draw();
 	void autoCorrectText();
-	void drawMisspelled(LLRect background);
+	void drawMisspelled(const LLRect& background);
 	virtual void	reshape(S32 width,S32 height,BOOL called_from_parent=TRUE);
 	virtual void	onFocusReceived();
 	virtual void	onFocusLost();
-- 
cgit v1.1