Function removal in LFFloaterInvPanel, in favor of boost::bind function.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user