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/llsnapshotlivepreview.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/llsnapshotlivepreview.cpp')
| -rw-r--r-- | indra/newview/llsnapshotlivepreview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llsnapshotlivepreview.cpp b/indra/newview/llsnapshotlivepreview.cpp index 795563e295..7255ab77a4 100644 --- a/indra/newview/llsnapshotlivepreview.cpp +++ b/indra/newview/llsnapshotlivepreview.cpp @@ -1005,7 +1005,8 @@ void LLSnapshotLivePreview::saveTexture(BOOL outfit_snapshot, std::string name) if (formatted->encode(scaled, 0.0f)) { - LLFileSystem::writeFile(formatted->getData(), formatted->getDataSize(), new_asset_id, LLAssetType::AT_TEXTURE); + LLFileSystem fmt_file(new_asset_id, LLAssetType::AT_TEXTURE, LLFileSystem::WRITE); + fmt_file.write(formatted->getData(), formatted->getDataSize()); std::string pos_string; LLAgentUI::buildLocationString(pos_string, LLAgentUI::LOCATION_FORMAT_FULL); std::string who_took_it; |
