From 3fc50ca73daa3c95e58f72eade0be754fc0aa6cc Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 16 Nov 2021 17:15:42 -0500
Subject: [PATCH] Fix build

---
 indra/newview/llappearancemgr.cpp    | 2 +-
 indra/newview/lllogchat.cpp          | 1 -
 indra/newview/llpanelface.cpp        | 4 ++--
 indra/newview/llsechandler_basic.cpp | 1 +
 indra/newview/rlvfloaters.cpp        | 8 ++++----
 indra/newview/rlvhandler.cpp         | 6 +++---
 indra/newview/rlvhelper.cpp          | 6 +++---
 7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 72a77407f28..5a88ccf45a2 100644
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -2138,7 +2138,7 @@ void LLAppearanceMgr::filterWearableItems(
                 continue;
 //            S32 start_index = llmax(0,size-max_per_type);
 // [SL:KB] - Patch: Appearance-Misc | Checked: 2010-05-11 (Catznip-2.0)
-			S32 start_index = llmax(0, size - ((LLWearableType::getAllowMultiwear((LLWearableType::EType)i)) ? max_per_type : 1));
+			S32 start_index = llmax(0, size - ((LLWearableType::getInstanceFast()->getAllowMultiwear((LLWearableType::EType)i)) ? max_per_type : 1));
 // [/SL:KB[
             for (S32 j = start_index; j<size; j++)
             {
diff --git a/indra/newview/lllogchat.cpp b/indra/newview/lllogchat.cpp
index bdd1c2186d3..b3a2f73325a 100644
--- a/indra/newview/lllogchat.cpp
+++ b/indra/newview/lllogchat.cpp
@@ -41,7 +41,6 @@
 
 #include <boost/algorithm/string/trim.hpp>
 #include <boost/algorithm/string/replace.hpp>
-#include <boost/regex/v4/match_results.hpp>
 #include <boost/date_time/gregorian/gregorian.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <boost/date_time/local_time_adjustor.hpp>
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 9c48b1499f9..ea7750266c2 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -338,7 +338,7 @@ void LLPanelFace::sendBump(U32 bumpiness)
 	//
 	LLSelectedTEMaterial::setNormalID(this, current_normal_map);
 
-	LLSelectMgr::getInstanceFast()->selectionSetBumpmap( bump, bumpytexture_ctrl->getImageItemID() );
+	LLSelectMgr::getInstanceFast()->selectionSetBumpmap( bump, mBumpyTextureCtrl->getImageItemID() );
 }
 
 void LLPanelFace::sendTexGen()
@@ -363,7 +363,7 @@ void LLPanelFace::sendShiny(U32 shininess)
 
 	LLSelectedTEMaterial::setSpecularID(this, specmap);
 
-	LLSelectMgr::getInstanceFast()->selectionSetShiny( shiny, texture_ctrl->getImageItemID() );
+	LLSelectMgr::getInstanceFast()->selectionSetShiny( shiny, mShinyTextureCtrl->getImageItemID() );
 
 	updateShinyControls(!specmap.isNull(), true);
 	
diff --git a/indra/newview/llsechandler_basic.cpp b/indra/newview/llsechandler_basic.cpp
index 6f6c057bbc2..8f610415923 100644
--- a/indra/newview/llsechandler_basic.cpp
+++ b/indra/newview/llsechandler_basic.cpp
@@ -1466,6 +1466,7 @@ void LLSecAPIBasicHandler::_readProtectedData(unsigned char *unique_id, U32 id_l
 				// everything failed abort
 				LLTHROW(LLProtectedDataException("Config file cannot be decrypted."));
 			}
+		}
 	}
 }
 
diff --git a/indra/newview/rlvfloaters.cpp b/indra/newview/rlvfloaters.cpp
index 98c0d49ef07..ac7226c0d6d 100644
--- a/indra/newview/rlvfloaters.cpp
+++ b/indra/newview/rlvfloaters.cpp
@@ -45,7 +45,7 @@ std::string rlvGetItemName(const LLViewerInventoryItem* pItem)
 {
 	if ( (pItem) && ((LLAssetType::AT_BODYPART == pItem->getType()) || (LLAssetType::AT_CLOTHING == pItem->getType())) )
 	{
-		return llformat("%s (%s)", pItem->getName().c_str(), LLWearableType::getTypeName(pItem->getWearableType()).c_str());
+		return llformat("%s (%s)", pItem->getName().c_str(), LLWearableType::getInstanceFast()->getTypeName(pItem->getWearableType()).c_str());
 	}
 	else if ( (pItem) && (LLAssetType::AT_OBJECT == pItem->getType()) && (isAgentAvatarValid()) )
 	{
@@ -192,7 +192,7 @@ std::string rlvFolderLockSourceToTarget(RlvFolderLocks::folderlock_source_t lock
 			}
 		case RlvFolderLocks::ST_WEARABLETYPE:
 			{
-				const std::string& strTypeName = LLWearableType::getTypeName(boost::get<LLWearableType::EType>(lockSource.second));
+				const std::string& strTypeName = LLWearableType::getInstanceFast()->getTypeName(boost::get<LLWearableType::EType>(lockSource.second));
 				return llformat("Wearable type (%s)", strTypeName.c_str());
 			}
 		default:
@@ -531,7 +531,7 @@ void RlvFloaterLocks::refreshAll()
 	for (RlvWearableLocks::rlv_wearabletypelock_map_t::const_iterator itWearableType = wearableTypeAdd.begin(); 
 			itWearableType != wearableTypeAdd.end(); ++itWearableType)
 	{
-		sdColumns[2]["value"] = LLWearableType::getTypeLabel(itWearableType->first);
+		sdColumns[2]["value"] = LLWearableType::getInstanceFast()->getTypeLabel(itWearableType->first);
 		sdColumns[3]["value"] = rlvGetItemNameFromObjID(itWearableType->second);
 
 		pLockList->addElement(sdRow, ADD_BOTTOM);
@@ -542,7 +542,7 @@ void RlvFloaterLocks::refreshAll()
 	for (RlvWearableLocks::rlv_wearabletypelock_map_t::const_iterator itWearableType = wearableTypeRem.begin(); 
 			itWearableType != wearableTypeRem.end(); ++itWearableType)
 	{
-		sdColumns[2]["value"] = LLWearableType::getTypeName(itWearableType->first);
+		sdColumns[2]["value"] = LLWearableType::getInstanceFast()->getTypeName(itWearableType->first);
 		sdColumns[3]["value"] = rlvGetItemNameFromObjID(itWearableType->second);
 
 		pLockList->addElement(sdRow, ADD_BOTTOM);
diff --git a/indra/newview/rlvhandler.cpp b/indra/newview/rlvhandler.cpp
index ea3aff58ad9..523555c615a 100644
--- a/indra/newview/rlvhandler.cpp
+++ b/indra/newview/rlvhandler.cpp
@@ -3845,7 +3845,7 @@ ERlvCmdRet RlvHandler::onGetOutfit(const RlvCommand& rlvCmd, std::string& strRep
 
 	// (Compatibility: RLV-1.16.1 will execute @getoutfit=<channel> if <layer> is invalid while we just return failure)
 	LLWearableType::EType wtType = LLWearableType::WT_INVALID;
-	if ( (rlvCmd.hasOption()) && ((wtType = LLWearableType::typeNameToType(rlvCmd.getOption())) == LLWearableType::WT_INVALID) )
+	if ( (rlvCmd.hasOption()) && ((wtType = LLWearableType::getInstanceFast()->typeNameToType(rlvCmd.getOption())) == LLWearableType::WT_INVALID) )
 		return RLV_RET_FAILED_OPTION;
 
 	const LLWearableType::EType wtRlvTypes[] =
@@ -3865,7 +3865,7 @@ ERlvCmdRet RlvHandler::onGetOutfit(const RlvCommand& rlvCmd, std::string& strRep
 			// (nor do we hide a layer if the issuing object is the only one that has this layer locked)
 			bool fWorn = (gAgentWearables.getWearableCount(wtRlvTypes[idxType]) > 0) && 
 				( (!RlvSettings::getHideLockedLayers()) || 
-				  (LLAssetType::AT_BODYPART == LLWearableType::getAssetType(wtRlvTypes[idxType])) ||
+				  (LLAssetType::AT_BODYPART == LLWearableType::getInstanceFast()->getAssetType(wtRlvTypes[idxType])) ||
 				  (RlvForceWear::isForceRemovable(wtRlvTypes[idxType], true, rlvCmd.getObjectID())) );
 			strReply.push_back( (fWorn) ? '1' : '0' );
 		}
@@ -3906,7 +3906,7 @@ ERlvCmdRet RlvHandler::onGetOutfitNames(const RlvCommand& rlvCmd, std::string& s
 		{
 			if (!strReply.empty())
 				strReply.push_back(',');
-			strReply.append(LLWearableType::getTypeName(wtType));
+			strReply.append(LLWearableType::getInstanceFast()->getTypeName(wtType));
 		}
 	}
 	return RLV_RET_SUCCESS;
diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp
index 033fd4b9417..2b46978300b 100644
--- a/indra/newview/rlvhelper.cpp
+++ b/indra/newview/rlvhelper.cpp
@@ -850,7 +850,7 @@ bool RlvCommandOptionHelper::parseOption<float>(const std::string& strOption, fl
 template<>
 bool RlvCommandOptionHelper::parseOption<LLWearableType::EType>(const std::string& strOption, LLWearableType::EType& wtOption)
 {
-	wtOption = LLWearableType::typeNameToType(strOption);
+	wtOption = LLWearableType::getInstanceFast()->typeNameToType(strOption);
 	return (LLWearableType::WT_INVALID != wtOption) && (LLWearableType::WT_NONE != wtOption);
 }
 
@@ -1893,13 +1893,13 @@ void RlvBehaviourNotifyHandler::sendNotification(const std::string& strText, con
 // Checked: 2011-03-31 (RLVa-1.3.0f) | Added: RLVa-1.3.0f
 void RlvBehaviourNotifyHandler::onWear(LLWearableType::EType eType, bool fAllowed)
 {
-	sendNotification(llformat("worn %s %s", (fAllowed) ? "legally" : "illegally", LLWearableType::getTypeName(eType).c_str()));
+	sendNotification(llformat("worn %s %s", (fAllowed) ? "legally" : "illegally", LLWearableType::getInstanceFast()->getTypeName(eType).c_str()));
 }
 
 // Checked: 2011-03-31 (RLVa-1.3.0f) | Added: RLVa-1.3.0f
 void RlvBehaviourNotifyHandler::onTakeOff(LLWearableType::EType eType, bool fAllowed)
 {
-	sendNotification(llformat("unworn %s %s", (fAllowed) ? "legally" : "illegally", LLWearableType::getTypeName(eType).c_str()));
+	sendNotification(llformat("unworn %s %s", (fAllowed) ? "legally" : "illegally", LLWearableType::getInstanceFast()->getTypeName(eType).c_str()));
 }
 
 // Checked: 2011-03-31 (RLVa-1.3.0f) | Added: RLVa-1.3.0f
-- 
GitLab