Skip to content
Snippets Groups Projects
Commit 2d043af6 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Experimental button draw opt to remove a string copy

parent 0537ff54
No related branches found
No related tags found
No related merge requests found
......@@ -801,7 +801,7 @@ void LLButton::draw()
label_color = ll::ui::SearchableControl::getHighlightColor();
// Unselected label assignments
LLWString label = getCurrentLabel();
const LLWString& label = getCurrentLabel().getWString();
// overlay with keyboard focus border
if (hasFocus())
......@@ -933,7 +933,7 @@ void LLButton::draw()
// Draw label
if( !label.empty() )
{
LLWStringUtil::trim(label);
//LLWStringUtil::trim(label);
S32 x;
switch( mHAlign )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment