diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 13:35:53 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 13:35:53 +0000 |
commit | 86056788ec8a5af023c6b8d7d0809597bc1012f0 (patch) | |
tree | 35274d9a8c396ccef366bc96efaff195be49e087 /indra/newview | |
parent | af0bfb388a4ecd2a2c67ae18743c9c63ca3fd29e (diff) |
CID-134
Checker: NULL_RETURNS
Function: LLToolsEnableUnlink::handleEvent(const LLSD &)
File: /indra/newview/llviewermenu.cpp
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewermenu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index b15a9a9e99..8c61ba7558 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -4842,9 +4842,10 @@ class LLToolsEnableUnlink : public view_listener_t { bool handleEvent(const LLSD& userdata) { + LLViewerObject* first_editable_object = LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject(); bool new_value = LLSelectMgr::getInstance()->selectGetAllRootsValid() && - LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject() && - !LLSelectMgr::getInstance()->getSelection()->getFirstEditableObject()->isAttachment(); + first_editable_object && + !first_editable_object->isAttachment(); return new_value; } }; |