diff options
author | Dave Parks <davep@lindenlab.com> | 2011-11-04 16:15:05 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-11-04 16:15:05 -0500 |
commit | 8a8e9ccdb67e7e8a492a4fe1505407ebe128ee18 (patch) | |
tree | 4ed3f649f3857fd765aa7e95a22b8d320520a2a6 /indra/llplugin | |
parent | e82c0561fa5fa157efec445362b09360346ed382 (diff) |
SH-2652 Don't allocate 6000+ strings every frame
Diffstat (limited to 'indra/llplugin')
-rw-r--r-- | indra/llplugin/llpluginclassmedia.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llplugin/llpluginclassmedia.h b/indra/llplugin/llpluginclassmedia.h index 1f548f8cc0..26fff7a614 100644 --- a/indra/llplugin/llpluginclassmedia.h +++ b/indra/llplugin/llpluginclassmedia.h @@ -269,7 +269,7 @@ public: std::string getHoverText() const { return mHoverText; }; std::string getHoverLink() const { return mHoverLink; }; - std::string getMediaName() const { return mMediaName; }; + const std::string& getMediaName() const { return mMediaName; }; std::string getMediaDescription() const { return mMediaDescription; }; // Crash the plugin. If you use this outside of a testbed, you will be punished. |