From 900d063d4fa9e2432eb02915a8e74353a49b7eea Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Fri, 6 Jan 2012 11:18:31 -0500 Subject: [PATCH] Just fixed this file up a bit to look a bit nicer... Won't affect performance. --- indra/llui/llradiogroup.cpp | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/indra/llui/llradiogroup.cpp b/indra/llui/llradiogroup.cpp index 5f5a2acd8..5c715d3ff 100644 --- a/indra/llui/llradiogroup.cpp +++ b/indra/llui/llradiogroup.cpp @@ -47,11 +47,9 @@ static LLRegisterWidget r("radio_group"); LLRadioGroup::LLRadioGroup(const std::string& name, const LLRect& rect, - const std::string& control_name, - LLUICtrlCallback callback, - void* userdata, - BOOL border) -: LLUICtrl(name, rect, TRUE, callback, userdata, FOLLOWS_LEFT | FOLLOWS_TOP), + const std::string& control_name, LLUICtrlCallback callback, + void* userdata, BOOL border) : + LLUICtrl(name, rect, TRUE, callback, userdata, FOLLOWS_LEFT | FOLLOWS_TOP), mSelectedIndex(0) { setControlName(control_name, NULL); @@ -59,10 +57,8 @@ LLRadioGroup::LLRadioGroup(const std::string& name, const LLRect& rect, } LLRadioGroup::LLRadioGroup(const std::string& name, const LLRect& rect, - S32 initial_index, - LLUICtrlCallback callback, - void* userdata, - BOOL border) : + S32 initial_index, LLUICtrlCallback callback, + void* userdata, BOOL border) : LLUICtrl(name, rect, TRUE, callback, userdata, FOLLOWS_LEFT | FOLLOWS_TOP), mSelectedIndex(initial_index) { @@ -74,10 +70,8 @@ void LLRadioGroup::init(BOOL border) if (border) { addChild( new LLViewBorder( std::string("radio group border"), - LLRect(0, getRect().getHeight(), getRect().getWidth(), 0), - LLViewBorder::BEVEL_NONE, - LLViewBorder::STYLE_LINE, - 1 ) ); + LLRect(0, getRect().getHeight(), getRect().getWidth(), 0), + LLViewBorder::BEVEL_NONE, LLViewBorder::STYLE_LINE, 1 )); } mHasBorder = border; } @@ -257,8 +251,7 @@ void LLRadioGroup::draw() LLRadioCtrl* LLRadioGroup::addRadioButton(const std::string& name, const std::string& label, const LLRect& rect, const LLFontGL* font ) { // Highlight will get fixed in draw method above - LLRadioCtrl* radio = new LLRadioCtrl(name, rect, label, font, - onClickButton, this); + LLRadioCtrl* radio = new LLRadioCtrl(name, rect, label, font, onClickButton, this); addChild(radio); mRadioButtons.push_back(radio); return radio;