Don't allocate memory for debugging strings every mouse click.

master
James Cook 2009-11-10 10:17:26 -08:00
parent 116f1601bd
commit 34bd95ff1f
1 changed files with 2 additions and 2 deletions

View File

@ -600,8 +600,8 @@ void LLViewerWindow::updateDebugText()
BOOL LLViewerWindow::handleAnyMouseClick(LLWindow *window, LLCoordGL pos, MASK mask, LLMouseHandler::EClickType clicktype, BOOL down)
{
std::string buttonname;
std::string buttonstatestr;
const char* buttonname = "";
const char* buttonstatestr = "";
BOOL handled = FALSE;
S32 x = pos.mX;
S32 y = pos.mY;