CHUI-102: Code review, just changed function getCurSelectedViewModelItem() to have a single return statement.

meow-7.2.2
Gilbert Gonzales 2012-10-02 17:56:01 -07:00
parent ed9ade7d50
commit 7e1fbd1a89
1 changed files with 4 additions and 2 deletions

View File

@ -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)