Alchemy llcharacter and llcommon merge pass.
This commit is contained in:
@@ -103,7 +103,7 @@ LLFolderDictionary::LLFolderDictionary()
|
||||
addEntry(LLFolderType::FT_OUTBOX, new FolderEntry("outbox", TRUE));
|
||||
addEntry(LLFolderType::FT_BASIC_ROOT, new FolderEntry("basic_rt", TRUE));
|
||||
|
||||
addEntry(LLFolderType::FT_SUITCASE, new FolderEntry("suitcase", FALSE));
|
||||
addEntry(LLFolderType::FT_SUITCASE, new FolderEntry("suitcase", TRUE));
|
||||
|
||||
addEntry(LLFolderType::FT_NONE, new FolderEntry("-1", FALSE));
|
||||
};
|
||||
|
||||
@@ -1314,11 +1314,11 @@ void LLInventoryItem::unpackBinaryBucket(U8* bin_bucket, S32 bin_bucket_size)
|
||||
setUUID(item_id);
|
||||
|
||||
LLAssetType::EType type;
|
||||
type = (LLAssetType::EType)(atoi((*(iter++)).c_str()));
|
||||
type = static_cast<LLAssetType::EType>(std::stoi((*(iter++))));
|
||||
setType( type );
|
||||
|
||||
LLInventoryType::EType inv_type;
|
||||
inv_type = (LLInventoryType::EType)(atoi((*(iter++)).c_str()));
|
||||
inv_type = static_cast<LLInventoryType::EType>(std::stoi((*(iter++))));
|
||||
setInventoryType( inv_type );
|
||||
|
||||
std::string name((*(iter++)).c_str());
|
||||
@@ -1346,8 +1346,8 @@ void LLInventoryItem::unpackBinaryBucket(U8* bin_bucket, S32 bin_bucket_size)
|
||||
setDescription(desc);
|
||||
|
||||
LLSaleInfo::EForSale sale_type;
|
||||
sale_type = (LLSaleInfo::EForSale)(atoi((*(iter++)).c_str()));
|
||||
S32 price = atoi((*(iter++)).c_str());
|
||||
sale_type = static_cast<LLSaleInfo::EForSale>(std::stoi((*(iter++))));
|
||||
S32 price = std::stoi(*(iter++));
|
||||
LLSaleInfo sale_info(sale_type, price);
|
||||
setSaleInfo(sale_info);
|
||||
|
||||
@@ -1416,6 +1416,10 @@ LLSD LLInventoryCategory::asLLSD() const
|
||||
return sd;
|
||||
}
|
||||
|
||||
bool LLInventoryCategory::isPreferredTypeRoot() const
|
||||
{
|
||||
return (mPreferredType == LLFolderType::FT_ROOT_INVENTORY || mPreferredType == 9);
|
||||
}
|
||||
|
||||
// virtual
|
||||
void LLInventoryCategory::packMessage(LLMessageSystem* msg) const
|
||||
|
||||
@@ -90,16 +90,12 @@ public:
|
||||
// in place correction for inventory name string
|
||||
static void correctInventoryName(std::string& name);
|
||||
// [/RLVa:KB]
|
||||
private:
|
||||
// // in place correction for inventory name string
|
||||
// void correctInventoryName(std::string& name);
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// File Support
|
||||
// Implemented here so that a minimal information set can be transmitted
|
||||
// between simulator and viewer.
|
||||
//--------------------------------------------------------------------
|
||||
public:
|
||||
// virtual BOOL importFile(LLFILE* fp);
|
||||
virtual BOOL exportFile(LLFILE* fp, BOOL include_asset_key = TRUE) const;
|
||||
virtual BOOL importLegacyStream(std::istream& input_stream);
|
||||
@@ -262,6 +258,7 @@ public:
|
||||
void setPreferredType(LLFolderType::EType type);
|
||||
LLSD asLLSD() const;
|
||||
bool fromLLSD(const LLSD& sd);
|
||||
bool isPreferredTypeRoot() const;
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Messaging
|
||||
|
||||
Reference in New Issue
Block a user