diff --git a/indra/llprimitive/llprimitive.cpp b/indra/llprimitive/llprimitive.cpp
index 2177f5c36542538a78afd968648a53d31f0d45b1..dcfb5cfae61411e750a215e4f89d704e0c821e8f 100644
--- a/indra/llprimitive/llprimitive.cpp
+++ b/indra/llprimitive/llprimitive.cpp
@@ -1902,7 +1902,7 @@ bool LLLightImageParams::fromLLSD(LLSD& sd)
 	if (sd.has("texture"))
 	{
 		setLightTexture( sd["texture"] );
-		setParams( sd["params"] );
+		setParams( LLVector3( sd["params"] ) );
 		return true;
 	} 
 	
diff --git a/indra/lscript/lscript_execute/lscript_execute.cpp b/indra/lscript/lscript_execute/lscript_execute.cpp
index 1f908eb675d1d693a57b32dba84fe6d083ba4ff3..e849fa9a6e8532586fc8d70913b157e62917be7c 100644
--- a/indra/lscript/lscript_execute/lscript_execute.cpp
+++ b/indra/lscript/lscript_execute/lscript_execute.cpp
@@ -4241,12 +4241,12 @@ S32 lscript_push_variable(LLScriptLibData *data, U8 *buffer)
 // Shared code for run_calllib() and run_calllib_two_byte()
 BOOL run_calllib_common(U8 *buffer, S32 &offset, const LLUUID &id, U16 arg)
 {
-	if (arg >= gScriptLibrary.mNextNumber)
+	if (arg >= gScriptLibrary.mFunctions.size())
 	{
 		set_fault(buffer, LSRF_BOUND_CHECK_ERROR);
 		return FALSE;
 	}
-	LLScriptLibraryFunction *function = gScriptLibrary.mFunctions[arg];
+	LLScriptLibraryFunction const & function = gScriptLibrary.mFunctions[arg];
 
 	// pull out the arguments and the return values
 	LLScriptLibData	*arguments = NULL;
@@ -4254,14 +4254,14 @@ BOOL run_calllib_common(U8 *buffer, S32 &offset, const LLUUID &id, U16 arg)
 
 	S32 i, number;
 
-	if (function->mReturnType)
+	if (function.mReturnType)
 	{
 		returnvalue = new LLScriptLibData;
 	}
 
-	if (function->mArgs)
+	if (function.mArgs)
 	{
-		number = (S32)strlen(function->mArgs);		//Flawfinder: ignore
+		number = (S32)strlen(function.mArgs);		//Flawfinder: ignore
 		arguments = new LLScriptLibData[number];
 	}
 	else
@@ -4271,18 +4271,18 @@ BOOL run_calllib_common(U8 *buffer, S32 &offset, const LLUUID &id, U16 arg)
 
 	for (i = number - 1; i >= 0; i--)
 	{
-		lscript_pop_variable(&arguments[i], buffer, function->mArgs[i]);
+		lscript_pop_variable(&arguments[i], buffer, function.mArgs[i]);
 	}
 
 	// Actually execute the function call
-	function->mExecFunc(returnvalue, arguments, id);
+	function.mExecFunc(returnvalue, arguments, id);
 
-	add_register_fp(buffer, LREG_ESR, -(function->mEnergyUse));
-	add_register_fp(buffer, LREG_SLR, function->mSleepTime);
+	add_register_fp(buffer, LREG_ESR, -(function.mEnergyUse));
+	add_register_fp(buffer, LREG_SLR, function.mSleepTime);
 
 	if (returnvalue)
 	{
-		returnvalue->mType = char2type(*function->mReturnType);
+		returnvalue->mType = char2type(*function.mReturnType);
 		lscript_push_return_variable(returnvalue, buffer);
 	}
 
@@ -4304,12 +4304,12 @@ BOOL run_calllib(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &id)
 	offset++;
 	U16 arg = (U16) safe_instruction_bytestream2byte(buffer, offset);
 	if (b_print &&
-		arg < gScriptLibrary.mNextNumber)
+		arg < gScriptLibrary.mFunctions.size())
 	{
 		printf("[0x%X]\tCALLLIB ", offset);
-		LLScriptLibraryFunction *function = gScriptLibrary.mFunctions[arg];
-		printf("%d (%s)\n", (U32)arg, function->mName);
-		printf("%s\n", function->mDesc);
+		LLScriptLibraryFunction const & function = gScriptLibrary.mFunctions[arg];
+		printf("%d (%s)\n", (U32)arg, function.mName);
+		//printf("%s\n", function.mDesc);
 	}
 	return run_calllib_common(buffer, offset, id, arg);
 }
@@ -4319,12 +4319,12 @@ BOOL run_calllib_two_byte(U8 *buffer, S32 &offset, BOOL b_print, const LLUUID &i
 	offset++;
 	U16 arg = safe_instruction_bytestream2u16(buffer, offset);
 	if (b_print &&
-		arg < gScriptLibrary.mNextNumber)
+		arg < gScriptLibrary.mFunctions.size())
 	{
 		printf("[0x%X]\tCALLLIB ", (offset-1));
-		LLScriptLibraryFunction *function = gScriptLibrary.mFunctions[arg];
-		printf("%d (%s)\n", (U32)arg, function->mName);
-		printf("%s\n", function->mDesc);
+		LLScriptLibraryFunction const & function = gScriptLibrary.mFunctions[arg];
+		printf("%d (%s)\n", (U32)arg, function.mName);
+		//printf("%s\n", function.mDesc);
 	}
 	return run_calllib_common(buffer, offset, id, arg);
 }
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 28e20d92d0201cda34cff1d7d5ec6636f8c5ff7a..111cdf7c12093882c5366a321cfa6509aa817fe7 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5590,9 +5590,8 @@ void process_covenant_reply(LLMessageSystem* msg, void**)
 	LLPanelLandCovenant::updateLastModified(last_modified);
 	LLFloaterBuyLand::updateLastModified(last_modified);
 
-	gCacheName->get(estate_owner_id, false, &callbackCacheEstateOwnerName);
 	BOOL is_group = FALSE;
-	gCacheName->getNameFromUUID(estate_owner_id, is_group, callbackCacheEstateOwnerName);
+	gCacheName->get(estate_owner_id, is_group, &callbackCacheEstateOwnerName);
 	
 	// load the actual covenant asset data
 	const BOOL high_priority = TRUE;
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index 182850f3268b557006d9d6f9778ac03007011e7c..746dc99e35e5260327cfd0a7f59703bf424f28f9 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -6920,8 +6920,8 @@ void LLVoiceClient::notifyFriendObservers()
 
 void LLVoiceClient::lookupName(const LLUUID &id)
 {
-	gCacheName->get(id, FALSE, &LLVoiceClient::onAvatarNameLookup);
-	gCacheName->getNameFromUUID(id, is_group, onAvatarNameLookup);
+	BOOL is_group = FALSE;
+	gCacheName->get(id, is_group, &LLVoiceClient::onAvatarNameLookup);
 }
 
 //static