From 39a667093588ad0588263aad144ee1c99560cea3 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 16 May 2014 11:31:29 +0200 Subject: [PATCH] Minor refactoring in chatbar_as_cmdline.cpp --- indra/newview/chatbar_as_cmdline.cpp | 9 ++------- indra/newview/chatbar_as_cmdline.h | 4 ++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/indra/newview/chatbar_as_cmdline.cpp b/indra/newview/chatbar_as_cmdline.cpp index 319a969fe6..50bb0d26c8 100644 --- a/indra/newview/chatbar_as_cmdline.cpp +++ b/indra/newview/chatbar_as_cmdline.cpp @@ -428,12 +428,7 @@ void invrepair() gInventory.collectDescendents(gInventory.getRootFolderID(),cats,items,FALSE);//,objectnamematches); } - -#ifdef JC_PROFILE_GSAVED -std::map get_gsaved_calls(); -#endif - -bool cmd_line_chat(std::string revised_text, EChatType type, bool from_gesture) +bool cmd_line_chat(const std::string& revised_text, EChatType type, bool from_gesture) { static LLCachedControl sFSCmdLine(gSavedSettings, "FSCmdLine"); static LLCachedControl sFSCmdLinePos(gSavedSettings, "FSCmdLinePos"); @@ -1209,7 +1204,7 @@ LLUUID cmdline_partial_name2key(std::string partial_name) return LLUUID::null; } -void cmdline_tp2name(std::string target) +void cmdline_tp2name(const std::string& target) { LLUUID avkey = cmdline_partial_name2key(target); if (avkey.notNull()) diff --git a/indra/newview/chatbar_as_cmdline.h b/indra/newview/chatbar_as_cmdline.h index 2f3eab8085..54367ce091 100644 --- a/indra/newview/chatbar_as_cmdline.h +++ b/indra/newview/chatbar_as_cmdline.h @@ -36,9 +36,9 @@ #include "llchat.h" -bool cmd_line_chat(std::string revised_text, EChatType type, bool from_gesture = false); +bool cmd_line_chat(const std::string& revised_text, EChatType type, bool from_gesture = false); void cmdline_rezplat(bool use_saved_value = true, F32 visual_radius = 30.f); -void cmdline_tp2name(std::string target); +void cmdline_tp2name(const std::string& target); LLUUID cmdline_partial_name2key(std::string name); #endif // CHATBAR_AS_CMDLINE_H