diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llinventorymodel.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llinventorymodel.cpp')
-rw-r--r-- | linden/indra/newview/llinventorymodel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llinventorymodel.cpp b/linden/indra/newview/llinventorymodel.cpp index e35f71b..ddd229b 100644 --- a/linden/indra/newview/llinventorymodel.cpp +++ b/linden/indra/newview/llinventorymodel.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | 5 | * Copyright (c) 2002-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -1155,7 +1156,7 @@ void LLInventoryModel::cache( | |||
1155 | char inventory_filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ | 1156 | char inventory_filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ |
1156 | agent_id.toString(agent_id_str); | 1157 | agent_id.toString(agent_id_str); |
1157 | std::string path(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, agent_id_str)); | 1158 | std::string path(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, agent_id_str)); |
1158 | snprintf( /*Flawfinder: ignore*/ | 1159 | snprintf( /* Flawfinder: ignore */ |
1159 | inventory_filename, | 1160 | inventory_filename, |
1160 | LL_MAX_PATH, | 1161 | LL_MAX_PATH, |
1161 | CACHE_FORMAT_STRING, | 1162 | CACHE_FORMAT_STRING, |
@@ -1444,7 +1445,7 @@ bool LLInventoryModel::loadSkeleton( | |||
1444 | owner_id.toString(owner_id_str); | 1445 | owner_id.toString(owner_id_str); |
1445 | std::string path(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, owner_id_str)); | 1446 | std::string path(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, owner_id_str)); |
1446 | char inventory_filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ | 1447 | char inventory_filename[LL_MAX_PATH]; /*Flawfinder: ignore*/ |
1447 | snprintf( /*Flawfinder: ignore*/ | 1448 | snprintf( /* Flawfinder: ignore */ |
1448 | inventory_filename, | 1449 | inventory_filename, |
1449 | LL_MAX_PATH, | 1450 | LL_MAX_PATH, |
1450 | CACHE_FORMAT_STRING, | 1451 | CACHE_FORMAT_STRING, |
@@ -1842,7 +1843,7 @@ void LLInventoryModel::buildParentChildMap() | |||
1842 | msg->addUUIDFast(_PREHASH_ItemID, (*it)); | 1843 | msg->addUUIDFast(_PREHASH_ItemID, (*it)); |
1843 | msg->addUUIDFast(_PREHASH_FolderID, lnf); | 1844 | msg->addUUIDFast(_PREHASH_FolderID, lnf); |
1844 | msg->addString("NewName", NULL); | 1845 | msg->addString("NewName", NULL); |
1845 | if(msg->mCurrentSendTotal >= MTUBYTES) | 1846 | if(msg->isSendFull(NULL)) |
1846 | { | 1847 | { |
1847 | start_new_message = TRUE; | 1848 | start_new_message = TRUE; |
1848 | gAgent.sendReliableMessage(); | 1849 | gAgent.sendReliableMessage(); |
@@ -3201,7 +3202,7 @@ void LLInventoryFetchObserver::fetchItems( | |||
3201 | msg->nextBlockFast(_PREHASH_InventoryData); | 3202 | msg->nextBlockFast(_PREHASH_InventoryData); |
3202 | msg->addUUIDFast(_PREHASH_OwnerID, owner_id); | 3203 | msg->addUUIDFast(_PREHASH_OwnerID, owner_id); |
3203 | msg->addUUIDFast(_PREHASH_ItemID, (*it)); | 3204 | msg->addUUIDFast(_PREHASH_ItemID, (*it)); |
3204 | if(msg->getCurrentSendTotal() >= MTUBYTES) | 3205 | if(msg->isSendFull(NULL)) |
3205 | { | 3206 | { |
3206 | start_new_message = TRUE; | 3207 | start_new_message = TRUE; |
3207 | gAgent.sendReliableMessage(); | 3208 | gAgent.sendReliableMessage(); |