diff options
| author | Oz Linden <oz@lindenlab.com> | 2015-04-14 05:00:58 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2015-04-14 05:00:58 -0400 | 
| commit | bef5a95cafdf6e20a243f4091b4fbcf426fb529b (patch) | |
| tree | b13c842935166c0fef7ce9a174782f6ce7c8657c /indra/llcommon | |
| parent | a8ef2525711f1f9312c1c9ebb8f137f4d25e659a (diff) | |
minimal changes to compile on Xcode 6.2
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/lluriparser.cpp | 29 | 
1 files changed, 5 insertions, 24 deletions
| diff --git a/indra/llcommon/lluriparser.cpp b/indra/llcommon/lluriparser.cpp index 8270c630d8..d98bc297e5 100644 --- a/indra/llcommon/lluriparser.cpp +++ b/indra/llcommon/lluriparser.cpp @@ -118,38 +118,19 @@ void LLUriParser::fragment(const std::string& s)  void LLUriParser::textRangeToString(UriTextRangeA& textRange, std::string& str)  { -	str = ""; - -	if(&textRange == NULL) -	{ -		return; -	} - -	if(textRange.first == NULL) -	{ -		return; -	} - -	if(textRange.afterLast == NULL) +	if (textRange.first != NULL && textRange.afterLast != NULL && textRange.first < textRange.afterLast)  	{ -		return; +		const ptrdiff_t len = textRange.afterLast - textRange.first; +		str.assign(textRange.first, static_cast<std::string::size_type>(len));  	} - -	S32 len = textRange.afterLast - textRange.first; -	if (len) +	else  	{ -		str.assign(textRange.first, len); +		str = LLStringUtil::null;  	}  }  void LLUriParser::extractParts()  { -	if(&mUri == NULL) -	{ -		LL_WARNS() << "mUri is NULL for uri: " << mNormalizedUri << LL_ENDL; -		return; -	} -  	if (mTmpScheme || mNormalizedTmp)  	{  		mScheme.clear(); | 
