summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2012-10-02 17:56:01 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2012-10-02 17:56:01 -0700
commit7e1fbd1a897e3238a101f1db2d155f0493beaac5 (patch)
treeb745faad85d0c498bcb2599c1f5c04f4c07215f9 /indra/newview
parented9ade7d50b699ac60eb69a979ea32a60eefa630 (diff)
CHUI-102: Code review, just changed function getCurSelectedViewModelItem() to have a single return statement.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llimfloatercontainer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llimfloatercontainer.cpp b/indra/newview/llimfloatercontainer.cpp
index 11aecde6e2..a33fc2c57e 100644
--- a/indra/newview/llimfloatercontainer.cpp
+++ b/indra/newview/llimfloatercontainer.cpp
@@ -737,14 +737,16 @@ void LLIMFloaterContainer::getSelectedUUIDs(uuid_vec_t& selected_uuids)
const LLConversationItem * LLIMFloaterContainer::getCurSelectedViewModelItem()
{
+ LLConversationItem * conversationItem = NULL;
+
if(mConversationsRoot &&
mConversationsRoot->getCurSelectedItem() &&
mConversationsRoot->getCurSelectedItem()->getViewModelItem())
{
- return static_cast<LLConversationItem *>(mConversationsRoot->getCurSelectedItem()->getViewModelItem());
+ conversationItem = static_cast<LLConversationItem *>(mConversationsRoot->getCurSelectedItem()->getViewModelItem());
}
- return NULL;
+ return conversationItem;
}
void LLIMFloaterContainer::doToUsers(const std::string& command, uuid_vec_t selectedIDS)