Shuffled LL_COMMON_API around in spots to match v2
Added llformat_to_utf8 Added LLProcessLauncher::getExecutable() LLStringTableEntry() ctor and dtor definitions moved from .h to .cpp (should be safe)
This commit is contained in:
@@ -908,8 +908,7 @@ mParent(parent)
|
||||
else
|
||||
{
|
||||
LLNotificationChannelPtr p = LLNotifications::instance().getChannel(parent);
|
||||
LLStandardSignal::slot_type f = boost::bind(&LLNotificationChannelBase::updateItem, this, _1);
|
||||
p->connectChanged(f);
|
||||
p->connectChanged(boost::bind(&LLNotificationChannelBase::updateItem, this, _1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1010,16 +1009,18 @@ bool LLNotifications::uniqueFilter(LLNotificationPtr pNotif)
|
||||
|
||||
bool LLNotifications::uniqueHandler(const LLSD& payload)
|
||||
{
|
||||
std::string cmd = payload["sigtype"];
|
||||
|
||||
LLNotificationPtr pNotif = LLNotifications::instance().find(payload["id"].asUUID());
|
||||
if (pNotif && pNotif->hasUniquenessConstraints())
|
||||
{
|
||||
if (payload["sigtype"].asString() == "add")
|
||||
if (cmd == "add")
|
||||
{
|
||||
// not a duplicate according to uniqueness criteria, so we keep it
|
||||
// and store it for future uniqueness checks
|
||||
mUniqueNotifications.insert(std::make_pair(pNotif->getName(), pNotif));
|
||||
}
|
||||
else if (payload["sigtype"].asString() == "delete")
|
||||
else if (cmd == "delete")
|
||||
{
|
||||
mUniqueNotifications.erase(pNotif->getName());
|
||||
}
|
||||
@@ -1425,6 +1426,8 @@ LLNotificationPtr LLNotifications::add(const LLNotification::Params& p)
|
||||
|
||||
void LLNotifications::add(const LLNotificationPtr pNotif)
|
||||
{
|
||||
if (pNotif == NULL) return;
|
||||
|
||||
// first see if we already have it -- if so, that's a problem
|
||||
LLNotificationSet::iterator it=mItems.find(pNotif);
|
||||
if (it != mItems.end())
|
||||
@@ -1437,6 +1440,8 @@ void LLNotifications::add(const LLNotificationPtr pNotif)
|
||||
|
||||
void LLNotifications::cancel(LLNotificationPtr pNotif)
|
||||
{
|
||||
if (pNotif == NULL || pNotif->isCancelled()) return;
|
||||
|
||||
LLNotificationSet::iterator it=mItems.find(pNotif);
|
||||
if (it == mItems.end())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user