diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-09-23 16:57:54 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-09-23 16:57:54 +0300 | 
| commit | 7ae4f766f03fa9046c30ee868697e7ec637b6ad0 (patch) | |
| tree | ec2d5bc04b0a4edd4617c30da6e3ed104071d81d | |
| parent | 2c0814b00a26d99de00161f9307e706a49251017 (diff) | |
SL-13335 Init default button width
| -rw-r--r-- | indra/newview/lltoastalertpanel.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/lltoastalertpanel.h | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/lltoastalertpanel.cpp b/indra/newview/lltoastalertpanel.cpp index af8cb8b5cb..4f46d1c0a2 100644 --- a/indra/newview/lltoastalertpanel.cpp +++ b/indra/newview/lltoastalertpanel.cpp @@ -125,10 +125,6 @@ LLToastAlertPanel::LLToastAlertPanel( LLNotificationPtr notification, bool modal  			{  				data.mWidth = (*it)["width"].asInteger();  			} -			else -			{ -				data.mWidth = 0; -			}  			mButtonData.push_back(data);  			option_index++; diff --git a/indra/newview/lltoastalertpanel.h b/indra/newview/lltoastalertpanel.h index 7ffe328439..bd34e40642 100644 --- a/indra/newview/lltoastalertpanel.h +++ b/indra/newview/lltoastalertpanel.h @@ -82,6 +82,10 @@ private:  	struct ButtonData  	{ +		ButtonData() +		: mWidth(0) +		{} +		  		LLButton* mButton;  		std::string mURL;  		U32 mURLExternal;  | 
