diff options
| author | brad kittenbrink <brad@lindenlab.com> | 2009-09-01 18:16:04 -0400 | 
|---|---|---|
| committer | brad kittenbrink <brad@lindenlab.com> | 2009-09-01 18:16:04 -0400 | 
| commit | 0f0853a6fe23c6eb4341d6a5a0752e224cdf1b22 (patch) | |
| tree | 701f4dc5ecd3fc0b9b5f6aec30b0b29134754a2a /indra | |
| parent | f4f02f0f34d5a26472ea4a6c681a380a2174d1bd (diff) | |
Fix up some more post-merge breakage.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llprimitive/llprimitive.cpp | 2 | ||||
| -rw-r--r-- | indra/lscript/lscript_execute/lscript_execute.cpp | 36 | ||||
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llvoiceclient.cpp | 4 | 
4 files changed, 22 insertions, 23 deletions
| diff --git a/indra/llprimitive/llprimitive.cpp b/indra/llprimitive/llprimitive.cpp index 2177f5c365..dcfb5cfae6 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 1f908eb675..e849fa9a6e 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 28e20d92d0..111cdf7c12 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 182850f326..746dc99e35 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 | 
