Commit 82522968 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Const ref is nice.

parent 5412ab89
......@@ -3190,7 +3190,7 @@ void LLAgent::sendAnimationRequests(const std::vector<LLUUID> &anim_ids, EAnimRe
msg->addUUIDFast(_PREHASH_AgentID, getID());
msg->addUUIDFast(_PREHASH_SessionID, getSessionID());
for (auto anim_id : anim_ids)
for (const auto& anim_id : anim_ids)
{
if (anim_id.isNull())
{
......
......@@ -474,22 +474,22 @@ static void notification_display_name_callback(const LLUUID& id,
LLNotificationsUtil::add(name, substitutions, payload);
}
void LLIMProcessing::processNewMessage(LLUUID from_id,
void LLIMProcessing::processNewMessage(const LLUUID& from_id,
BOOL from_group,
LLUUID to_id,
const LLUUID& to_id,
U8 offline,
EInstantMessage dialog, // U8
LLUUID session_id,
const LLUUID& session_id,
U32 timestamp,
std::string agentName,
const std::string& agentName,
std::string message,
U32 parent_estate_id,
LLUUID region_id,
LLVector3 position,
const LLUUID& region_id,
const LLVector3& position,
U8 *binary_bucket,
S32 binary_bucket_size,
LLHost &sender,
LLUUID aux_id)
const LLUUID& aux_id)
{
LLChat chat;
std::string buffer;
......
......@@ -33,22 +33,22 @@ class LLIMProcessing
{
public:
// Pre-process message for IM manager
static void processNewMessage(LLUUID from_id,
static void processNewMessage(const LLUUID& from_id,
BOOL from_group,
LLUUID to_id,
const LLUUID& to_id,
U8 offline,
EInstantMessage dialog, // U8
LLUUID session_id,
const LLUUID& session_id,
U32 timestamp,
std::string agentName,
const std::string& agentName,
std::string message,
U32 parent_estate_id,
LLUUID region_id,
LLVector3 position,
const LLUUID& region_id,
const LLVector3& position,
U8 *binary_bucket,
S32 binary_bucket_size,
LLHost &sender,
LLUUID aux_id = LLUUID::null);
const LLUUID& aux_id = LLUUID::null);
// Either receives list of offline messages from 'ReadOfflineMsgs' capability
// or uses legacy method
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment