diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-04-30 23:45:22 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-05-05 18:28:08 +0300 |
commit | f73e0d09aabd17f778ce802353dea5c5aae007be (patch) | |
tree | 9bd26aee05f8981fb07c6af0c260bd85d0d36f19 /indra/llinventory/tests/inventorymisc_test.cpp | |
parent | 778a69c6e1783ea6c9c7ac3102990646ff2e38da (diff) |
#3905 Crashes in LLInventoryModel::saveToFile
I don't expect it to fix the problem. Just making things more explicit
in places of most frequent crashes.
Diffstat (limited to 'indra/llinventory/tests/inventorymisc_test.cpp')
-rw-r--r-- | indra/llinventory/tests/inventorymisc_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llinventory/tests/inventorymisc_test.cpp b/indra/llinventory/tests/inventorymisc_test.cpp index 9779cb8fbc..ee01f0e428 100644 --- a/indra/llinventory/tests/inventorymisc_test.cpp +++ b/indra/llinventory/tests/inventorymisc_test.cpp @@ -329,7 +329,9 @@ namespace tut } LLPointer<LLInventoryItem> src1 = create_random_inventory_item(); - fileXML << LLSDOStreamer<LLSDNotationFormatter>(src1->asLLSD()) << std::endl; + LLSD sd; + src1->asLLSD(sd); + fileXML << LLSDOStreamer<LLSDNotationFormatter>(sd) << std::endl; fileXML.close(); @@ -458,7 +460,9 @@ namespace tut } LLPointer<LLInventoryCategory> src1 = create_random_inventory_cat(); - fileXML << LLSDOStreamer<LLSDNotationFormatter>(src1->exportLLSD()) << std::endl; + LLSD sd; + src1->exportLLSD(sd); + fileXML << LLSDOStreamer<LLSDNotationFormatter>(sd) << std::endl; fileXML.close(); llifstream file(filename.c_str()); |