From b6ca98e197200e1b6c4586883dca433845ea494d Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 27 Nov 2017 17:10:37 +0100 Subject: [PATCH] Save some type conversions here... --- indra/llui/lluictrl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llui/lluictrl.cpp b/indra/llui/lluictrl.cpp index 8cbd9cde5e..703540b3e6 100644 --- a/indra/llui/lluictrl.cpp +++ b/indra/llui/lluictrl.cpp @@ -1000,7 +1000,7 @@ void LLUICtrl::setColor(const LLColor4& color) F32 LLUICtrl::getCurrentTransparency() { - F32 alpha = 0; + F32 alpha = 0.f; switch(mTransparencyType) { @@ -1017,12 +1017,12 @@ F32 LLUICtrl::getCurrentTransparency() break; case TT_FADING: - alpha = sInactiveControlTransparency / 2; + alpha = sInactiveControlTransparency / 2.f; break; // FIRE-5583, FIRE-5220: Option to show Camera Controls always opaque case TT_FORCE_OPAQUE: - alpha = 1; + alpha = 1.f; break; //