aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltool.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltool.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/lltool.cpp')
-rw-r--r--linden/indra/newview/lltool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/lltool.cpp b/linden/indra/newview/lltool.cpp
index 00395e2..cb0d3b1 100644
--- a/linden/indra/newview/lltool.cpp
+++ b/linden/indra/newview/lltool.cpp
@@ -46,9 +46,9 @@
46extern BOOL gDebugClicks; 46extern BOOL gDebugClicks;
47 47
48//static 48//static
49const LLString LLTool::sNameNull("null"); 49const std::string LLTool::sNameNull("null");
50 50
51LLTool::LLTool( const LLString& name, LLToolComposite* composite ) : 51LLTool::LLTool( const std::string& name, LLToolComposite* composite ) :
52 mComposite( composite ), 52 mComposite( composite ),
53 mName(name) 53 mName(name)
54{ 54{
@@ -124,7 +124,7 @@ BOOL LLTool::handleRightMouseUp(S32 x, S32 y, MASK mask)
124 return FALSE; 124 return FALSE;
125} 125}
126 126
127BOOL LLTool::handleToolTip(S32 x, S32 y, LLString& msg, LLRect* sticky_rect_screen) 127BOOL LLTool::handleToolTip(S32 x, S32 y, std::string& msg, LLRect* sticky_rect_screen)
128{ 128{
129 // by default, didn't handle it 129 // by default, didn't handle it
130 // llinfos << "LLTool::handleToolTip" << llendl; 130 // llinfos << "LLTool::handleToolTip" << llendl;
@@ -135,12 +135,12 @@ void LLTool::setMouseCapture( BOOL b )
135{ 135{
136 if( b ) 136 if( b )
137 { 137 {
138 gViewerWindow->setMouseCapture(mComposite ? mComposite : this ); 138 gFocusMgr.setMouseCapture(mComposite ? mComposite : this );
139 } 139 }
140 else 140 else
141 if( hasMouseCapture() ) 141 if( hasMouseCapture() )
142 { 142 {
143 gViewerWindow->setMouseCapture( NULL ); 143 gFocusMgr.setMouseCapture( NULL );
144 } 144 }
145} 145}
146 146