diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2010-07-06 12:44:43 -0400 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2010-07-06 12:44:43 -0400 |
commit | 9d96da4b94c875b8f32e9893f37142ba07b0c453 (patch) | |
tree | 514f2b658ac081d07f7c83e1c4f72ffe3d91f5db | |
parent | dc6c35e353b991db2651d26bc76e5b3ee9921157 (diff) |
EXT-8249 FIX coverity fix - eliminating fallthrough for switch statement
Code reviewed by Seraph
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 17efc28a6a..f8cff42412 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -989,16 +989,15 @@ bool LLAppearanceMgr::wearItemOnAvatar(const LLUUID& item_id_to_wear, bool do_up { removeCOFItemLinks(gAgentWearables.getWearableItemID(item_to_wear->getWearableType(), wearable_count-1), false); } + addCOFItemLink(item_to_wear, do_update); } + break; case LLAssetType::AT_BODYPART: // TODO: investigate wearables may not be loaded at this point EXT-8231 // Remove the existing wearables of the same type. // Remove existing body parts anyway because we must not be able to wear e.g. two skins. - if (item_to_wear->getType() == LLAssetType::AT_BODYPART) - { - removeCOFLinksOfType(item_to_wear->getWearableType(), false); - } + removeCOFLinksOfType(item_to_wear->getWearableType(), false); addCOFItemLink(item_to_wear, do_update); break; |