Fix OpenSim build
parent
de6055abdd
commit
22e0c08ec5
|
|
@ -259,7 +259,7 @@ static void downloadCompleteScript(LLSD const &aData, std::string const &aURL, s
|
|||
LLXMLNodePtr xml_root;
|
||||
std::string stringData;
|
||||
stringData.assign( rawData.begin(), rawData.end() ); // LLXMLNode::parseBuffer wants a U8*, not a const U8*, so need to copy here just to be safe
|
||||
if ( (!LLXMLNode::parseBuffer( reinterpret_cast< U8*> ( &stringData[0] ), stringData.size(), xml_root, NULL)) || (xml_root.isNull()) || (!xml_root->hasName("script_library")) )
|
||||
if ( (!LLXMLNode::parseBuffer( reinterpret_cast< U8*> ( &stringData[0] ), (U32)stringData.size(), xml_root, NULL)) || (xml_root.isNull()) || (!xml_root->hasName("script_library")) )
|
||||
{
|
||||
LL_WARNS("fsdata") << "Could not read the script library data from "<< aURL << LL_ENDL;
|
||||
return;
|
||||
|
|
@ -274,7 +274,7 @@ static void downloadCompleteScript(LLSD const &aData, std::string const &aURL, s
|
|||
else
|
||||
{
|
||||
LL_INFOS("fsdata") << "Saving " << aFilename << LL_ENDL;
|
||||
outfile.write( &rawData[0], rawData.size() );
|
||||
outfile.write( &rawData[0], (S32)rawData.size() );
|
||||
outfile.close() ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ void gridDownloadComplete( LLSD const &aData, LLGridManager* mOwner, GridEntry*
|
|||
|
||||
std::string stringData;
|
||||
stringData.assign( rawData.begin(), rawData.end() ); // LLXMLNode::parseBuffer wants a U8*, not a const U8*, so need to copy here just to be safe
|
||||
if(LLXMLNode::parseBuffer( reinterpret_cast< U8*> ( &stringData[0] ), stringData.size(), mData->info_root, NULL))
|
||||
if(LLXMLNode::parseBuffer( reinterpret_cast< U8*> ( &stringData[0] ), (U32)stringData.size(), mData->info_root, NULL))
|
||||
{
|
||||
mOwner->gridInfoResponderCB(mData);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue