Function removal in LFFloaterInvPanel, in favor of boost::bind function.

This commit is contained in:
Inusaito Sayori
2014-07-21 18:04:20 -04:00
parent 601ff92871
commit 6f6938f5bb
2 changed files with 1 additions and 7 deletions

View File

@@ -29,7 +29,7 @@
LFFloaterInvPanel::LFFloaterInvPanel(const LLUUID& cat_id, LLInventoryModel* model, const std::string& name)
: LLInstanceTracker<LFFloaterInvPanel, LLUUID>(cat_id)
{
mCommitCallbackRegistrar.add("InvPanel.Search", boost::bind(&LFFloaterInvPanel::onSearch, this, _2));
mCommitCallbackRegistrar.add("InvPanel.Search", boost::bind(&LLInventoryPanel::setFilterSubString, boost::ref(mPanel), _2));
LLUICtrlFactory::getInstance()->buildFloater(this, "floater_inv_panel.xml");
LLPanel* panel = getChild<LLPanel>("placeholder_panel");
mPanel = new LLInventoryPanel("inv_panel", LLInventoryPanel::DEFAULT_SORT_ORDER, cat_id.asString(), panel->getRect(), model, true);
@@ -83,8 +83,3 @@ BOOL LFFloaterInvPanel::handleKeyHere(KEY key, MASK mask)
return LLFloater::handleKeyHere(key, mask);
}
void LFFloaterInvPanel::onSearch(const LLSD& val)
{
mPanel->setFilterSubString(val.asString());
}

View File

@@ -35,7 +35,6 @@ public:
static void closeAll(); // Called when not allowed to have inventory open
/*virtual*/ BOOL handleKeyHere(KEY key, MASK mask);
void onSearch(const LLSD& val);
private:
class LLInventoryPanel* mPanel;