From 991d603a0c376a540b13443102736b27e0634a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Sat, 29 Feb 2020 05:57:36 -0500 Subject: [PATCH] Don't copy around strings and UUIDs, LL... pls --- indra/newview/llimprocessing.cpp | 14 +++++++------- indra/newview/llimprocessing.h | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/indra/newview/llimprocessing.cpp b/indra/newview/llimprocessing.cpp index 8af9d7d2a..0a46de883 100644 --- a/indra/newview/llimprocessing.cpp +++ b/indra/newview/llimprocessing.cpp @@ -514,22 +514,22 @@ bool group_vote_callback(const LLSD& notification, const LLSD& response) } static LLNotificationFunctorRegistration group_vote_callback_reg("GroupVote", group_vote_callback); -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 name, - std::string message, + std::string& name, + std::string& message, U32 parent_estate_id, - LLUUID region_id, + const LLUUID& region_id, LLVector3 position, U8 *binary_bucket, S32 binary_bucket_size, LLHost &sender, - LLUUID aux_id) + const LLUUID& aux_id) { LLChat chat; std::string buffer; diff --git a/indra/newview/llimprocessing.h b/indra/newview/llimprocessing.h index dfe9aa0e1..c8cc47f49 100644 --- a/indra/newview/llimprocessing.h +++ b/indra/newview/llimprocessing.h @@ -38,22 +38,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, - std::string message, + std::string& agentName, + std::string& message, U32 parent_estate_id, - LLUUID region_id, + const LLUUID& region_id, 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