Skip to content
Snippets Groups Projects
Commit aac1baae authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

static cast floater instance find functions since we never actually nullcheck anyways.

parent a8ba25c1
No related branches found
No related tags found
No related merge requests found
...@@ -150,19 +150,19 @@ class LLFloaterReg ...@@ -150,19 +150,19 @@ class LLFloaterReg
template <class T> template <class T>
static T* findTypedInstance(const std::string& name, const LLSD& key = LLSD()) 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> template <class T>
static T* getTypedInstance(const std::string& name, const LLSD& key = LLSD()) 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> template <class T>
static T* showTypedInstance(const std::string& name, const LLSD& key = LLSD(), BOOL focus = FALSE) 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;} static void blockShowFloaters(bool value) { sBlockShowFloaters = value;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment