aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewercontrol.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llviewercontrol.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewercontrol.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewercontrol.cpp b/linden/indra/newview/llviewercontrol.cpp
index 99bc98a..3a82c05 100644
--- a/linden/indra/newview/llviewercontrol.cpp
+++ b/linden/indra/newview/llviewercontrol.cpp
@@ -114,13 +114,13 @@ BOOL LLFloaterSettingsDebug::postBuild()
114 childSetCommitCallback("color_swatch", onCommitSettings); 114 childSetCommitCallback("color_swatch", onCommitSettings);
115 childSetUserData("color_swatch", this); 115 childSetUserData("color_swatch", this);
116 childSetAction("default_btn", onClickDefault, this); 116 childSetAction("default_btn", onClickDefault, this);
117 mComment = (LLTextEditor*)getChildByName("comment_text"); 117 mComment = getChild<LLTextEditor>("comment_text");
118 return TRUE; 118 return TRUE;
119} 119}
120 120
121void LLFloaterSettingsDebug::draw() 121void LLFloaterSettingsDebug::draw()
122{ 122{
123 LLComboBox* settings_combo = (LLComboBox*)getChildByName("settings_combo"); 123 LLComboBox* settings_combo = getChild<LLComboBox>("settings_combo");
124 LLControlBase* controlp = (LLControlBase*)settings_combo->getCurrentUserdata(); 124 LLControlBase* controlp = (LLControlBase*)settings_combo->getCurrentUserdata();
125 updateControl(controlp); 125 updateControl(controlp);
126 126
@@ -155,7 +155,7 @@ void LLFloaterSettingsDebug::onCommitSettings(LLUICtrl* ctrl, void* user_data)
155{ 155{
156 LLFloaterSettingsDebug* floaterp = (LLFloaterSettingsDebug*)user_data; 156 LLFloaterSettingsDebug* floaterp = (LLFloaterSettingsDebug*)user_data;
157 157
158 LLComboBox* settings_combo = (LLComboBox*)floaterp->getChildByName("settings_combo"); 158 LLComboBox* settings_combo = floaterp->getChild<LLComboBox>("settings_combo");
159 LLControlBase* controlp = (LLControlBase*)settings_combo->getCurrentUserdata(); 159 LLControlBase* controlp = (LLControlBase*)settings_combo->getCurrentUserdata();
160 160
161 LLVector3 vector; 161 LLVector3 vector;
@@ -229,7 +229,7 @@ void LLFloaterSettingsDebug::onCommitSettings(LLUICtrl* ctrl, void* user_data)
229void LLFloaterSettingsDebug::onClickDefault(void* user_data) 229void LLFloaterSettingsDebug::onClickDefault(void* user_data)
230{ 230{
231 LLFloaterSettingsDebug* floaterp = (LLFloaterSettingsDebug*)user_data; 231 LLFloaterSettingsDebug* floaterp = (LLFloaterSettingsDebug*)user_data;
232 LLComboBox* settings_combo = (LLComboBox*)floaterp->getChildByName("settings_combo"); 232 LLComboBox* settings_combo = floaterp->getChild<LLComboBox>("settings_combo");
233 LLControlBase* controlp = (LLControlBase*)settings_combo->getCurrentUserdata(); 233 LLControlBase* controlp = (LLControlBase*)settings_combo->getCurrentUserdata();
234 234
235 if (controlp) 235 if (controlp)
@@ -246,7 +246,7 @@ void LLFloaterSettingsDebug::updateControl(LLControlBase* controlp)
246 LLSpinCtrl* spinner2 = LLUICtrlFactory::getSpinnerByName(this, "val_spinner_2"); 246 LLSpinCtrl* spinner2 = LLUICtrlFactory::getSpinnerByName(this, "val_spinner_2");
247 LLSpinCtrl* spinner3 = LLUICtrlFactory::getSpinnerByName(this, "val_spinner_3"); 247 LLSpinCtrl* spinner3 = LLUICtrlFactory::getSpinnerByName(this, "val_spinner_3");
248 LLSpinCtrl* spinner4 = LLUICtrlFactory::getSpinnerByName(this, "val_spinner_4"); 248 LLSpinCtrl* spinner4 = LLUICtrlFactory::getSpinnerByName(this, "val_spinner_4");
249 LLColorSwatchCtrl* color_swatch = LLUICtrlFactory::getColorSwatchByName(this, "color_swatch"); 249 LLColorSwatchCtrl* color_swatch = getChild<LLColorSwatchCtrl>("color_swatch");
250 250
251 if (!spinner1 || !spinner2 || !spinner3 || !spinner4 || !color_swatch) 251 if (!spinner1 || !spinner2 || !spinner3 || !spinner4 || !color_swatch)
252 { 252 {