summaryrefslogtreecommitdiff
path: root/indra/newview/lltool.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-11-04 16:15:05 -0500
committerDave Parks <davep@lindenlab.com>2011-11-04 16:15:05 -0500
commit8a8e9ccdb67e7e8a492a4fe1505407ebe128ee18 (patch)
tree4ed3f649f3857fd765aa7e95a22b8d320520a2a6 /indra/newview/lltool.h
parente82c0561fa5fa157efec445362b09360346ed382 (diff)
SH-2652 Don't allocate 6000+ strings every frame
Diffstat (limited to 'indra/newview/lltool.h')
-rw-r--r--indra/newview/lltool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/lltool.h b/indra/newview/lltool.h
index d3edabb486..ecc435d844 100644
--- a/indra/newview/lltool.h
+++ b/indra/newview/lltool.h
@@ -68,7 +68,7 @@ public:
virtual void localPointToScreen(S32 local_x, S32 local_y, S32* screen_x, S32* screen_y) const
{ *screen_x = local_x; *screen_y = local_y; }
- virtual std::string getName() const { return mName; }
+ virtual const std::string& getName() const { return mName; }
// New virtual functions
virtual LLViewerObject* getEditingObject() { return NULL; }