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

Small optimization to LLTabContainer update and construction

parent 8f8d5219
No related branches found
No related tags found
No related merge requests found
......@@ -928,7 +928,7 @@ void LLTabContainer::addTabPanel(LLPanel* panelp)
}
// function to update images
void LLTabContainer::update_images(LLTabTuple* tuple, TabParams params, LLTabContainer::TabPosition pos)
void LLTabContainer::update_images(LLTabTuple* tuple, const TabParams& params, LLTabContainer::TabPosition pos)
{
if (tuple && tuple->mButton)
{
......
......@@ -261,7 +261,7 @@ class LLTabContainer : public LLPanel
void commitHoveredButton(S32 x, S32 y);
// updates tab button images given the tuple, tab position and the corresponding params
void update_images(LLTabTuple* tuple, TabParams params, LLTabContainer::TabPosition pos);
void update_images(LLTabTuple* tuple, const TabParams& params, LLTabContainer::TabPosition pos);
void reshapeTuple(LLTabTuple* tuple);
// Variables
......
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