diff options
author | James Cook <james@lindenlab.com> | 2009-11-10 10:17:26 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-11-10 10:17:26 -0800 |
commit | 34bd95ff1fb1eb69a3bd2a95ac714477ce70bca8 (patch) | |
tree | 93d8497d46180d3260f1ec136aadd9f95263b89c /indra | |
parent | 116f1601bd12f0a60373f4b69d71130ee50417f1 (diff) |
Don't allocate memory for debugging strings every mouse click.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index fc09c946af..2c2670563e 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -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; |