summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.cpp
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2018-07-18 19:59:00 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2018-07-18 19:59:00 +0300
commitbce40a19348a35f5e223cf740e4ba7e96314286b (patch)
treec36beb9e1cdf260bc10ec04b95790d237fb8e69b /indra/newview/llinventorymodel.cpp
parent546002d7695bea2e65a77681f0ea540b930cb1b7 (diff)
Backed out changeset: 1d9ad7f485e6
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r--indra/newview/llinventorymodel.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 76bf87cfe5..bedf11d7e4 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -344,23 +344,13 @@ LLViewerInventoryCategory* LLInventoryModel::getCategory(const LLUUID& id) const
bool LLInventoryModel::isCategoryHidden(const LLUUID& id) const
{
- bool res = false;
const LLViewerInventoryCategory* category = getCategory(id);
if (category)
{
LLFolderType::EType cat_type = category->getPreferredType();
- switch (cat_type)
- {
- case LLFolderType::FT_INBOX:
- case LLFolderType::FT_OUTBOX:
- case LLFolderType::FT_MARKETPLACE_LISTINGS:
- res = true;
- break;
- default:
- break;
- }
+ return (cat_type == LLFolderType::FT_INBOX || cat_type == LLFolderType::FT_OUTBOX);
}
- return res;
+ return false;
}
S32 LLInventoryModel::getItemCount() const