From aac1baae0cc6ef5beb2cc32f3e4bca75ae573d08 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 7 Jul 2020 23:16:16 -0400
Subject: [PATCH] static cast floater instance find functions since we never
 actually nullcheck anyways.

---
 indra/llui/llfloaterreg.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/indra/llui/llfloaterreg.h b/indra/llui/llfloaterreg.h
index 5bafe646647..d4bfb9bab7e 100644
--- a/indra/llui/llfloaterreg.h
+++ b/indra/llui/llfloaterreg.h
@@ -150,19 +150,19 @@ class LLFloaterReg
 	template <class T>
 	static T* findTypedInstance(const std::string& name, const LLSD& key = LLSD())
 	{
-		return dynamic_cast<T*>(findInstance(name, key));
+		return static_cast<T*>(findInstance(name, key));
 	}
 
 	template <class T>
 	static T* getTypedInstance(const std::string& name, const LLSD& key = LLSD())
 	{
-		return dynamic_cast<T*>(getInstance(name, key));
+		return static_cast<T*>(getInstance(name, key));
 	}
 
 	template <class T>
 	static T* showTypedInstance(const std::string& name, const LLSD& key = LLSD(), BOOL focus = FALSE)
 	{
-		return dynamic_cast<T*>(showInstance(name, key, focus));
+		return static_cast<T*>(showInstance(name, key, focus));
 	}
 
 	static void blockShowFloaters(bool value) { sBlockShowFloaters = value;}
-- 
GitLab