summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2020-09-23 16:57:54 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2020-09-23 16:57:54 +0300
commit7ae4f766f03fa9046c30ee868697e7ec637b6ad0 (patch)
treeec2d5bc04b0a4edd4617c30da6e3ed104071d81d /indra
parent2c0814b00a26d99de00161f9307e706a49251017 (diff)
SL-13335 Init default button width
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltoastalertpanel.cpp4
-rw-r--r--indra/newview/lltoastalertpanel.h4
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;