Introduce Types for ID Bearer IDs

This commit is contained in:
Liru Færs
2019-11-23 23:05:33 -05:00
parent ab207727fd
commit 5a561e03b8
8 changed files with 64 additions and 12 deletions

View File

@@ -34,6 +34,7 @@
#include "llpanelgroup.h"
// Library includes
#include "lfidbearer.h"
#include "llbutton.h"
#include "lltabcontainer.h"
#include "lltextbox.h"
@@ -129,7 +130,7 @@ void LLPanelGroupTab::handleClickHelp()
}
}
void copy_profile_uri(const LLUUID& id, bool group);
void copy_profile_uri(const LLUUID& id, LFIDBearer::Type type);
LLPanelGroup::LLPanelGroup(const LLUUID& group_id)
: LLPanel("PanelGroup", LLRect(), FALSE),
@@ -161,7 +162,7 @@ LLPanelGroup::LLPanelGroup(const LLUUID& group_id)
LLGroupMgr::getInstance()->addObserver(this);
mCommitCallbackRegistrar.add("Group.CopyURI", boost::bind(copy_profile_uri, boost::ref(mID), true));
mCommitCallbackRegistrar.add("Group.CopyURI", boost::bind(copy_profile_uri, boost::ref(mID), LFIDBearer::GROUP));
// Pass on construction of this panel to the control factory.
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_group.xml", &getFactoryMap());
}