aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterlagmeter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterlagmeter.cpp')
-rw-r--r--linden/indra/newview/llfloaterlagmeter.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloaterlagmeter.cpp b/linden/indra/newview/llfloaterlagmeter.cpp
index f43427c..35e679d 100644
--- a/linden/indra/newview/llfloaterlagmeter.cpp
+++ b/linden/indra/newview/llfloaterlagmeter.cpp
@@ -45,12 +45,12 @@
45#include "llfocusmgr.h" 45#include "llfocusmgr.h"
46#include "lltextbox.h" 46#include "lltextbox.h"
47 47
48const LLString LAG_CRITICAL_IMAGE_NAME = "lag_status_critical.tga"; 48const std::string LAG_CRITICAL_IMAGE_NAME = "lag_status_critical.tga";
49const LLString LAG_WARNING_IMAGE_NAME = "lag_status_warning.tga"; 49const std::string LAG_WARNING_IMAGE_NAME = "lag_status_warning.tga";
50const LLString LAG_GOOD_IMAGE_NAME = "lag_status_good.tga"; 50const std::string LAG_GOOD_IMAGE_NAME = "lag_status_good.tga";
51 51
52LLFloaterLagMeter::LLFloaterLagMeter(const LLSD& key) 52LLFloaterLagMeter::LLFloaterLagMeter(const LLSD& key)
53 : LLFloater("floater_lagmeter") 53 : LLFloater(std::string("floater_lagmeter"))
54{ 54{
55 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_lagmeter.xml"); 55 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_lagmeter.xml");
56 56
@@ -70,7 +70,7 @@ LLFloaterLagMeter::LLFloaterLagMeter(const LLSD& key)
70 mServerText = getChild<LLTextBox>("server_text"); 70 mServerText = getChild<LLTextBox>("server_text");
71 mServerCause = getChild<LLTextBox>("server_lag_cause"); 71 mServerCause = getChild<LLTextBox>("server_lag_cause");
72 72
73 LLString config_string = getString("client_frame_rate_critical_fps", mStringArgs); 73 std::string config_string = getString("client_frame_rate_critical_fps", mStringArgs);
74 mClientFrameTimeCritical = 1.0f / (float)atof( config_string.c_str() ); 74 mClientFrameTimeCritical = 1.0f / (float)atof( config_string.c_str() );
75 config_string = getString("client_frame_rate_warning_fps", mStringArgs); 75 config_string = getString("client_frame_rate_warning_fps", mStringArgs);
76 mClientFrameTimeWarning = 1.0f / (float)atof( config_string.c_str() ); 76 mClientFrameTimeWarning = 1.0f / (float)atof( config_string.c_str() );
@@ -152,7 +152,7 @@ void LLFloaterLagMeter::determineClient()
152 { 152 {
153 mClientButton->setImageUnselected(LAG_GOOD_IMAGE_NAME); 153 mClientButton->setImageUnselected(LAG_GOOD_IMAGE_NAME);
154 mClientText->setText( getString("client_frame_time_window_bg_msg", mStringArgs) ); 154 mClientText->setText( getString("client_frame_time_window_bg_msg", mStringArgs) );
155 mClientCause->setText( LLString::null ); 155 mClientCause->setText( LLStringUtil::null );
156 } 156 }
157 else if(client_frame_time >= mClientFrameTimeCritical) 157 else if(client_frame_time >= mClientFrameTimeCritical)
158 { 158 {
@@ -170,7 +170,7 @@ void LLFloaterLagMeter::determineClient()
170 { 170 {
171 mClientButton->setImageUnselected(LAG_GOOD_IMAGE_NAME); 171 mClientButton->setImageUnselected(LAG_GOOD_IMAGE_NAME);
172 mClientText->setText( getString("client_frame_time_normal_msg", mStringArgs) ); 172 mClientText->setText( getString("client_frame_time_normal_msg", mStringArgs) );
173 mClientCause->setText( LLString::null ); 173 mClientCause->setText( LLStringUtil::null );
174 } 174 }
175 175
176 if(find_cause) 176 if(find_cause)
@@ -241,7 +241,7 @@ void LLFloaterLagMeter::determineNetwork()
241 } 241 }
242 else 242 else
243 { 243 {
244 mNetworkCause->setText( LLString::null ); 244 mNetworkCause->setText( LLStringUtil::null );
245 } 245 }
246} 246}
247 247
@@ -266,7 +266,7 @@ void LLFloaterLagMeter::determineServer()
266 { 266 {
267 mServerButton->setImageUnselected(LAG_GOOD_IMAGE_NAME); 267 mServerButton->setImageUnselected(LAG_GOOD_IMAGE_NAME);
268 mServerText->setText( getString("server_frame_time_normal_msg", mStringArgs) ); 268 mServerText->setText( getString("server_frame_time_normal_msg", mStringArgs) );
269 mServerCause->setText( LLString::null ); 269 mServerCause->setText( LLStringUtil::null );
270 } 270 }
271 271
272 if(find_cause) 272 if(find_cause)