summaryrefslogtreecommitdiff
path: root/indra/newview/llwearable.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-06-06 22:43:38 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-06-06 22:43:38 +0000
commitad332810078a0bbb8fa08fcbfdf3d756de6914f6 (patch)
tree1608b2db5d620d323673607ea7ddadfba9d58bda /indra/newview/llwearable.cpp
parenta7d9a543e587ffe84b355db7a2e8193bfe6c68b6 (diff)
QAR-650 - Viewer RC 9 merge -> release (post cmake)
merge release@88802 Branch_1-20-Viewer-2-merge-1@89178 -> release
Diffstat (limited to 'indra/newview/llwearable.cpp')
-rw-r--r--indra/newview/llwearable.cpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/indra/newview/llwearable.cpp b/indra/newview/llwearable.cpp
index af554e5160..f084088478 100644
--- a/indra/newview/llwearable.cpp
+++ b/indra/newview/llwearable.cpp
@@ -846,7 +846,7 @@ struct LLWearableSaveData
void LLWearable::saveNewAsset()
{
// llinfos << "LLWearable::saveNewAsset() type: " << getTypeName() << llendl;
- //dump();
+ //llinfos << *this << llendl;
char new_asset_id_string[UUID_STR_LENGTH]; /* Flawfinder: ignore */
mAssetID.toString(new_asset_id_string);
@@ -949,31 +949,32 @@ BOOL LLWearable::isMatchedToInventoryItem( LLViewerInventoryItem* item )
( mSaleInfo == item->getSaleInfo() );
}
-void LLWearable::dump()
+std::ostream& operator<<(std::ostream &s, const LLWearable &w)
{
- llinfos << "wearable " << LLWearable::typeToTypeName( mType ) << llendl;
- llinfos << " Name: " << mName << llendl;
- llinfos << " Desc: " << mDescription << llendl;
- //mPermissions
- //mSaleInfo
+ s << "wearable " << LLWearable::typeToTypeName( w.mType ) << "\n";
+ s << " Name: " << w.mName << "\n";
+ s << " Desc: " << w.mDescription << "\n";
+ //w.mPermissions
+ //w.mSaleInfo
- llinfos << " Params:" << llendl;
- for (param_map_t::iterator iter = mVisualParamMap.begin();
- iter != mVisualParamMap.end(); ++iter)
+ s << " Params:" << "\n";
+ for (LLWearable::param_map_t::const_iterator iter = w.mVisualParamMap.begin();
+ iter != w.mVisualParamMap.end(); ++iter)
{
S32 param_id = iter->first;
F32 param_weight = iter->second;
- llinfos << " " << param_id << " " << param_weight << llendl;
+ s << " " << param_id << " " << param_weight << "\n";
}
- llinfos << " Textures:" << llendl;
- for (te_map_t::iterator iter = mTEMap.begin();
- iter != mTEMap.end(); ++iter)
+ s << " Textures:" << "\n";
+ for (LLWearable::te_map_t::const_iterator iter = w.mTEMap.begin();
+ iter != w.mTEMap.end(); ++iter)
{
S32 te = iter->first;
- LLUUID& image_id = iter->second;
- llinfos << " " << te << " " << image_id << llendl;
+ const LLUUID& image_id = iter->second;
+ s << " " << te << " " << image_id << "\n";
}
+ return s;
}