diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 14:06:31 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 14:06:31 +0000 |
commit | cf69f03af17070152b5ca2772e7addfd0dcc4800 (patch) | |
tree | c6dff198aa1e9658fa06e057bd00cd7b16f62079 /indra/llui | |
parent | a0c57cbb824f5ec976f43a096c320929c7d89120 (diff) |
CID-206
Checker: REVERSE_INULL
Function: LLMultiSliderCtrl::onEditorCommit(LLUICtrl *, const LLSD &)
File: /indra/llui/llmultisliderctrl.cpp
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llmultisliderctrl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llui/llmultisliderctrl.cpp b/indra/llui/llmultisliderctrl.cpp index 50942e55ca..cc26c00a3e 100644 --- a/indra/llui/llmultisliderctrl.cpp +++ b/indra/llui/llmultisliderctrl.cpp @@ -330,13 +330,14 @@ void LLMultiSliderCtrl::updateText() // static void LLMultiSliderCtrl::onEditorCommit( LLUICtrl* ctrl, const LLSD& userdata) { + llassert(ctrl); + if (!ctrl) + return; + LLMultiSliderCtrl* self = dynamic_cast<LLMultiSliderCtrl*>(ctrl->getParent()); llassert(self); if (!self) // cast failed - wrong type! :O return; - - if (!ctrl) - return; BOOL success = FALSE; F32 val = self->mCurValue; |