diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-15 18:06:49 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-15 18:06:49 +0000 |
commit | 398af7dd40a060cf9ad8d799df03d448c2f53a96 (patch) | |
tree | f72f9d3d8ab934c1590475d1c007281151cb28cc /indra/llui | |
parent | dab54100f5df8036d86507ec66ad178194affb70 (diff) |
CID-34
Checker: DEADCODE
Function: LLDockableFloater::toggleInstance(const LLSD &)
File: /indra/llui/lldockablefloater.cpp
bool logic precendence assumptions were wrong.
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/lldockablefloater.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lldockablefloater.cpp b/indra/llui/lldockablefloater.cpp index a94f0206a6..0492ab0f25 100644 --- a/indra/llui/lldockablefloater.cpp +++ b/indra/llui/lldockablefloater.cpp @@ -95,7 +95,7 @@ void LLDockableFloater::toggleInstance(const LLSD& sdname) LLDockableFloater* instance = dynamic_cast<LLDockableFloater*> (LLFloaterReg::findInstance(name)); // if floater closed or docked - if (instance == NULL || instance != NULL && instance->isDocked()) + if (instance == NULL || (instance && instance->isDocked())) { LLFloaterReg::toggleInstance(name, key); // restore button toggle state |