No longer include llerrorlegacy.h. Updated llstl to include deletion utilites.
This commit is contained in:
@@ -272,7 +272,7 @@ bool LLPreviewNotecard::hasEmbeddedInventory()
|
||||
|
||||
void LLPreviewNotecard::refreshFromInventory()
|
||||
{
|
||||
lldebugs << "LLPreviewNotecard::refreshFromInventory()" << llendl;
|
||||
LL_DEBUGS() << "LLPreviewNotecard::refreshFromInventory()" << LL_ENDL;
|
||||
loadAsset();
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ void LLPreviewNotecard::loadAsset()
|
||||
else
|
||||
{
|
||||
// The object that we're trying to look at disappeared, bail.
|
||||
llwarns << "Can't find object " << mObjectUUID << " associated with notecard." << llendl;
|
||||
LL_WARNS() << "Can't find object " << mObjectUUID << " associated with notecard." << LL_ENDL;
|
||||
mAssetID.setNull();
|
||||
editor->setText(getString("no_object"));
|
||||
editor->makePristine();
|
||||
@@ -370,7 +370,7 @@ void LLPreviewNotecard::onLoadComplete(LLVFS *vfs,
|
||||
LLAssetType::EType type,
|
||||
void* user_data, S32 status, LLExtStat ext_status)
|
||||
{
|
||||
llinfos << "LLPreviewNotecard::onLoadComplete()" << llendl;
|
||||
LL_INFOS() << "LLPreviewNotecard::onLoadComplete()" << LL_ENDL;
|
||||
LLUUID* item_id = (LLUUID*)user_data;
|
||||
LLPreviewNotecard* preview = LLPreviewNotecard::getInstance(*item_id);
|
||||
if( preview )
|
||||
@@ -394,7 +394,7 @@ void LLPreviewNotecard::onLoadComplete(LLVFS *vfs,
|
||||
{
|
||||
if (!previewEditor->importBuffer(buffer, file_length+1))
|
||||
{
|
||||
llwarns << "Problem importing notecard" << llendl;
|
||||
LL_WARNS() << "Problem importing notecard" << LL_ENDL;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -431,7 +431,7 @@ void LLPreviewNotecard::onLoadComplete(LLVFS *vfs,
|
||||
LLNotificationsUtil::add("UnableToLoadNotecard");
|
||||
}
|
||||
|
||||
llwarns << "Problem loading notecard: " << status << llendl;
|
||||
LL_WARNS() << "Problem loading notecard: " << status << LL_ENDL;
|
||||
preview->mAssetStatus = PREVIEW_ASSET_ERROR;
|
||||
}
|
||||
}
|
||||
@@ -453,7 +453,7 @@ LLPreviewNotecard* LLPreviewNotecard::getInstance(const LLUUID& item_id)
|
||||
// static
|
||||
void LLPreviewNotecard::onClickSave(void* user_data)
|
||||
{
|
||||
//llinfos << "LLPreviewNotecard::onBtnSave()" << llendl;
|
||||
//LL_INFOS() << "LLPreviewNotecard::onBtnSave()" << LL_ENDL;
|
||||
LLPreviewNotecard* preview = (LLPreviewNotecard*)user_data;
|
||||
if(preview)
|
||||
{
|
||||
@@ -518,7 +518,7 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
|
||||
{
|
||||
if(!gAssetStorage)
|
||||
{
|
||||
llwarns << "Not connected to an asset storage system." << llendl;
|
||||
LL_WARNS() << "Not connected to an asset storage system." << LL_ENDL;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -560,8 +560,8 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
|
||||
setEnabled(FALSE);
|
||||
LLSD body;
|
||||
body["item_id"] = mItemUUID;
|
||||
llinfos << "Saving notecard " << mItemUUID
|
||||
<< " into agent inventory via " << agent_url << llendl;
|
||||
LL_INFOS() << "Saving notecard " << mItemUUID
|
||||
<< " into agent inventory via " << agent_url << LL_ENDL;
|
||||
LLHTTPClient::post(agent_url, body,
|
||||
new LLUpdateAgentInventoryResponder(body, asset_id, LLAssetType::AT_NOTECARD));
|
||||
}
|
||||
@@ -573,8 +573,8 @@ bool LLPreviewNotecard::saveIfNeeded(LLInventoryItem* copyitem)
|
||||
LLSD body;
|
||||
body["task_id"] = mObjectUUID;
|
||||
body["item_id"] = mItemUUID;
|
||||
llinfos << "Saving notecard " << mItemUUID << " into task "
|
||||
<< mObjectUUID << " via " << task_url << llendl;
|
||||
LL_INFOS() << "Saving notecard " << mItemUUID << " into task "
|
||||
<< mObjectUUID << " via " << task_url << LL_ENDL;
|
||||
LLHTTPClient::post(task_url, body,
|
||||
new LLUpdateTaskInventoryResponder(body, asset_id, LLAssetType::AT_NOTECARD));
|
||||
}
|
||||
@@ -613,8 +613,8 @@ void LLPreviewNotecard::onSaveComplete(const LLUUID& asset_uuid, void* user_data
|
||||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Inventory item for script " << info->mItemUUID
|
||||
<< " is no longer in agent inventory." << llendl;
|
||||
LL_WARNS() << "Inventory item for script " << info->mItemUUID
|
||||
<< " is no longer in agent inventory." << LL_ENDL;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -655,7 +655,7 @@ void LLPreviewNotecard::onSaveComplete(const LLUUID& asset_uuid, void* user_data
|
||||
}
|
||||
else
|
||||
{
|
||||
llwarns << "Problem saving notecard: " << status << llendl;
|
||||
LL_WARNS() << "Problem saving notecard: " << status << LL_ENDL;
|
||||
LLSD args;
|
||||
args["REASON"] = std::string(LLAssetStorage::getErrorString(status));
|
||||
LLNotificationsUtil::add("SaveNotecardFailReason", args);
|
||||
|
||||
Reference in New Issue
Block a user