diff options
author | Callum Prentice <callum@gmail.com> | 2020-10-06 18:18:18 -0700 |
---|---|---|
committer | Callum Prentice <callum@gmail.com> | 2020-10-06 18:18:18 -0700 |
commit | a0ea119623b8bda445f86afdb0ea7b5833c8e171 (patch) | |
tree | 5080c5d902654307306e8a94a9f0ec94a432398f /indra/newview/llfloaterreporter.cpp | |
parent | 56e30615530bf5d1c86fbafee89c9998a079e88f (diff) |
Replace references to static writefile with write so we end up with only a single read and a single write function
Diffstat (limited to 'indra/newview/llfloaterreporter.cpp')
-rw-r--r-- | indra/newview/llfloaterreporter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llfloaterreporter.cpp b/indra/newview/llfloaterreporter.cpp index 3ef80300ef..5d0e2bbc55 100644 --- a/indra/newview/llfloaterreporter.cpp +++ b/indra/newview/llfloaterreporter.cpp @@ -899,10 +899,8 @@ void LLFloaterReporter::takeScreenshot(bool use_prev_screenshot) mResourceDatap->mAssetInfo.setDescription("screenshot_descr"); // store in cache - LLFileSystem::writeFile(upload_data->getData(), - upload_data->getDataSize(), - mResourceDatap->mAssetInfo.mUuid, - mResourceDatap->mAssetInfo.mType); + LLFileSystem j2c_file(mResourceDatap->mAssetInfo.mUuid, mResourceDatap->mAssetInfo.mType, LLFileSystem::WRITE); + j2c_file.write(upload_data->getData(), upload_data->getDataSize()); // store in the image list so it doesn't try to fetch from the server LLPointer<LLViewerFetchedTexture> image_in_list = |