SL-12272 Ordered Shutdown log spam
parent
a3737fa1c4
commit
bda99bf2fc
|
|
@ -56,7 +56,7 @@ struct WearableEntry : public LLDictionaryEntry
|
|||
BOOL mAllowMultiwear;
|
||||
};
|
||||
|
||||
class LLWearableDictionary : public LLParamSingleton<LLWearableDictionary>,
|
||||
class LLWearableDictionary : public LLSingleton<LLWearableDictionary>,
|
||||
public LLDictionary<LLWearableType::EType, WearableEntry>
|
||||
{
|
||||
LLSINGLETON(LLWearableDictionary);
|
||||
|
|
@ -70,6 +70,12 @@ protected:
|
|||
|
||||
LLWearableDictionary::LLWearableDictionary()
|
||||
{
|
||||
if (!LLWearableType::instanceExists())
|
||||
{
|
||||
// LLWearableType is effectively a wrapper around LLWearableDictionary and is used as storage for LLTranslationBridge
|
||||
// Todo: consider merging LLWearableType and LLWearableDictionary
|
||||
LL_WARNS() << "Initing LLWearableDictionary without LLWearableType" << LL_ENDL;
|
||||
}
|
||||
addEntry(LLWearableType::WT_SHAPE, new WearableEntry("shape", "New Shape", LLAssetType::AT_BODYPART, LLInventoryType::ICONNAME_BODYPART_SHAPE, FALSE, FALSE));
|
||||
addEntry(LLWearableType::WT_SKIN, new WearableEntry("skin", "New Skin", LLAssetType::AT_BODYPART, LLInventoryType::ICONNAME_BODYPART_SKIN, FALSE, FALSE));
|
||||
addEntry(LLWearableType::WT_HAIR, new WearableEntry("hair", "New Hair", LLAssetType::AT_BODYPART, LLInventoryType::ICONNAME_BODYPART_HAIR, FALSE, FALSE));
|
||||
|
|
@ -101,6 +107,7 @@ LLWearableDictionary::LLWearableDictionary()
|
|||
|
||||
LLWearableType::LLWearableType(LLTranslationBridge* trans)
|
||||
{
|
||||
// LLTranslationBridge exists, but is not ready at this point in time since strings.xml is not yet loaded
|
||||
mTrans = trans;
|
||||
}
|
||||
|
||||
|
|
@ -109,14 +116,6 @@ LLWearableType::~LLWearableType()
|
|||
delete mTrans;
|
||||
}
|
||||
|
||||
void LLWearableType::initSingleton()
|
||||
{
|
||||
// To make sure all wrapping functions will crash without initing LLWearableType;
|
||||
LLWearableDictionary::initParamSingleton();
|
||||
|
||||
// Todo: consider merging LLWearableType and LLWearableDictionary
|
||||
}
|
||||
|
||||
// static
|
||||
LLWearableType::EType LLWearableType::typeNameToType(const std::string& type_name)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ class LLWearableType : public LLParamSingleton<LLWearableType>
|
|||
LLSINGLETON(LLWearableType, LLTranslationBridge* trans);
|
||||
~LLWearableType();
|
||||
friend struct WearableEntry;
|
||||
void initSingleton();
|
||||
public:
|
||||
enum EType
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue