diff options
Diffstat (limited to 'linden/indra/newview/llpreviewscript.cpp')
-rw-r--r-- | linden/indra/newview/llpreviewscript.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llpreviewscript.cpp b/linden/indra/newview/llpreviewscript.cpp index 86c78a5..9f3533e 100644 --- a/linden/indra/newview/llpreviewscript.cpp +++ b/linden/indra/newview/llpreviewscript.cpp | |||
@@ -1097,7 +1097,7 @@ LLPreviewLSL::LLPreviewLSL(const std::string& name, const LLRect& rect, | |||
1097 | moveResizeHandleToFront(); | 1097 | moveResizeHandleToFront(); |
1098 | 1098 | ||
1099 | 1099 | ||
1100 | LLInventoryItem* item = getItem(); | 1100 | const LLInventoryItem* item = getItem(); |
1101 | 1101 | ||
1102 | childSetCommitCallback("desc", LLPreview::onText, this); | 1102 | childSetCommitCallback("desc", LLPreview::onText, this); |
1103 | childSetText("desc", item->getDescription()); | 1103 | childSetText("desc", item->getDescription()); |
@@ -1151,7 +1151,7 @@ void LLPreviewLSL::loadAsset() | |||
1151 | // *HACK: we poke into inventory to see if it's there, and if so, | 1151 | // *HACK: we poke into inventory to see if it's there, and if so, |
1152 | // then it might be part of the inventory library. If it's in the | 1152 | // then it might be part of the inventory library. If it's in the |
1153 | // library, then you can see the script, but not modify it. | 1153 | // library, then you can see the script, but not modify it. |
1154 | LLInventoryItem* item = gInventory.getItem(mItemUUID); | 1154 | const LLInventoryItem* item = gInventory.getItem(mItemUUID); |
1155 | BOOL is_library = item | 1155 | BOOL is_library = item |
1156 | && !gInventory.isObjectDescendentOf(mItemUUID, | 1156 | && !gInventory.isObjectDescendentOf(mItemUUID, |
1157 | gAgent.getInventoryRootID()); | 1157 | gAgent.getInventoryRootID()); |
@@ -1278,7 +1278,7 @@ void LLPreviewLSL::saveIfNeeded() | |||
1278 | fclose(fp); | 1278 | fclose(fp); |
1279 | fp = NULL; | 1279 | fp = NULL; |
1280 | 1280 | ||
1281 | LLInventoryItem *inv_item = getItem(); | 1281 | const LLInventoryItem *inv_item = getItem(); |
1282 | // save it out to asset server | 1282 | // save it out to asset server |
1283 | std::string url = gAgent.getRegion()->getCapability("UpdateScriptAgentInventory"); | 1283 | std::string url = gAgent.getRegion()->getCapability("UpdateScriptAgentInventory"); |
1284 | if(inv_item) | 1284 | if(inv_item) |
@@ -1393,8 +1393,8 @@ void LLPreviewLSL::onSaveComplete(const LLUUID& asset_uuid, void* user_data, S32 | |||
1393 | { | 1393 | { |
1394 | if (info) | 1394 | if (info) |
1395 | { | 1395 | { |
1396 | LLViewerInventoryItem* item; | 1396 | const LLViewerInventoryItem* item; |
1397 | item = (LLViewerInventoryItem*)gInventory.getItem(info->mItemUUID); | 1397 | item = (const LLViewerInventoryItem*)gInventory.getItem(info->mItemUUID); |
1398 | if(item) | 1398 | if(item) |
1399 | { | 1399 | { |
1400 | LLPointer<LLViewerInventoryItem> new_item = new LLViewerInventoryItem(item); | 1400 | LLPointer<LLViewerInventoryItem> new_item = new LLViewerInventoryItem(item); |