Minor refactoring in chatbar_as_cmdline.cpp

Ansariel 2014-05-16 11:31:29 +02:00
parent 44875d107a
commit 39a6670935
2 changed files with 4 additions and 9 deletions

View File

@ -428,12 +428,7 @@ void invrepair()
gInventory.collectDescendents(gInventory.getRootFolderID(),cats,items,FALSE);//,objectnamematches);
}
#ifdef JC_PROFILE_GSAVED
std::map<std::string, int> 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<bool> sFSCmdLine(gSavedSettings, "FSCmdLine");
static LLCachedControl<std::string> 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())

View File

@ -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