Added LLNotificationsUtil and switched LLNotifications::instance().add to LLNotificationsUtil::add in a bazillion places.
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
|
||||
#include "lleventnotifier.h"
|
||||
|
||||
#include "llnotificationsutil.h"
|
||||
#include "message.h"
|
||||
|
||||
#include "llnotify.h"
|
||||
@@ -84,7 +85,7 @@ void LLEventNotifier::update()
|
||||
LLSD args;
|
||||
args["NAME"] = np->getEventName();
|
||||
args["DATE"] = np->getEventDateStr();
|
||||
LLNotifications::instance().add("EventNotification", args, LLSD(),
|
||||
LLNotificationsUtil::add("EventNotification", args, LLSD(),
|
||||
boost::bind(&LLEventNotifier::handleResponse, this, np->getEventID(), np->getEventPosGlobal(), _1, _2));
|
||||
remove(np->getEventID());
|
||||
}
|
||||
@@ -95,7 +96,7 @@ void LLEventNotifier::update()
|
||||
|
||||
bool LLEventNotifier::handleResponse(U32 eventId, LLVector3d eventPos, const LLSD& notification, const LLSD& response)
|
||||
{
|
||||
S32 option = LLNotification::getSelectedOption(notification, response);
|
||||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
switch (option)
|
||||
{
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user