aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llxfer_vfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llxfer_vfile.cpp')
-rw-r--r--linden/indra/llmessage/llxfer_vfile.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmessage/llxfer_vfile.cpp b/linden/indra/llmessage/llxfer_vfile.cpp
index 69d580a..a92c434 100644
--- a/linden/indra/llmessage/llxfer_vfile.cpp
+++ b/linden/indra/llmessage/llxfer_vfile.cpp
@@ -60,7 +60,7 @@ LLXfer_VFile::LLXfer_VFile (LLVFS *vfs, const LLUUID &local_id, LLAssetType::ETy
60 60
61LLXfer_VFile::~LLXfer_VFile () 61LLXfer_VFile::~LLXfer_VFile ()
62{ 62{
63 free(); 63 cleanup();
64} 64}
65 65
66/////////////////////////////////////////////////////////// 66///////////////////////////////////////////////////////////
@@ -74,15 +74,15 @@ void LLXfer_VFile::init (LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType
74 74
75 mVFile = NULL; 75 mVFile = NULL;
76 76
77 char id_string[UUID_STR_LENGTH]; /* Flawfinder : ignore */ 77 std::string id_string;
78 mLocalID.toString(id_string); 78 mLocalID.toString(id_string);
79 79
80 snprintf(mName, sizeof(mName), "VFile %s:%s", id_string, LLAssetType::lookup(mType)); /* Flawfinder : ignore */ 80 mName = llformat("VFile %s:%s", id_string.c_str(), LLAssetType::lookup(mType));
81} 81}
82 82
83/////////////////////////////////////////////////////////// 83///////////////////////////////////////////////////////////
84 84
85void LLXfer_VFile::free () 85void LLXfer_VFile::cleanup ()
86{ 86{
87 LLVFile file(mVFS, mTempID, mType, LLVFile::WRITE); 87 LLVFile file(mVFS, mTempID, mType, LLVFile::WRITE);
88 file.remove(); 88 file.remove();
@@ -90,7 +90,7 @@ void LLXfer_VFile::free ()
90 delete mVFile; 90 delete mVFile;
91 mVFile = NULL; 91 mVFile = NULL;
92 92
93 LLXfer::free(); 93 LLXfer::cleanup();
94} 94}
95 95
96/////////////////////////////////////////////////////////// 96///////////////////////////////////////////////////////////
@@ -118,10 +118,10 @@ S32 LLXfer_VFile::initializeRequest(U64 xfer_id,
118 mCallbackDataHandle = user_data; 118 mCallbackDataHandle = user_data;
119 mCallbackResult = LL_ERR_NOERR; 119 mCallbackResult = LL_ERR_NOERR;
120 120
121 char id_string[UUID_STR_LENGTH]; /* Flawfinder : ignore */ 121 std::string id_string;
122 mLocalID.toString(id_string); 122 mLocalID.toString(id_string);
123 123
124 snprintf(mName, sizeof(mName), "VFile %s:%s", id_string, LLAssetType::lookup(mType)); /* Flawfinder : ignore */ 124 mName = llformat("VFile %s:%s", id_string.c_str(), LLAssetType::lookup(mType));
125 125
126 llinfos << "Requesting " << mName << llendl; 126 llinfos << "Requesting " << mName << llendl;
127 127
@@ -328,7 +328,7 @@ BOOL LLXfer_VFile::matchesRemoteFile(const LLUUID &id, LLAssetType::EType type)
328 328
329////////////////////////////////////////////////////////// 329//////////////////////////////////////////////////////////
330 330
331const char * LLXfer_VFile::getName() 331std::string LLXfer_VFile::getFileName()
332{ 332{
333 return mName; 333 return mName;
334} 334}