From 7ae4f766f03fa9046c30ee868697e7ec637b6ad0 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Wed, 23 Sep 2020 16:57:54 +0300 Subject: SL-13335 Init default button width --- indra/newview/lltoastalertpanel.cpp | 4 ---- indra/newview/lltoastalertpanel.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'indra') 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; -- cgit v1.2.3