diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-01-25 14:48:39 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-01-25 14:48:39 +0200 |
commit | eff95bbea9bb9234e9df9fca7f5bc033f1b99358 (patch) | |
tree | c390c131bffaa95f2c100941cce02ec20186c390 /indra/llcommon | |
parent | 088056c5bf4adc589c7fcc65236b90a466e59705 (diff) | |
parent | 7094921d1f235ff45cc5b3ef58b64c2812c8676f (diff) |
Merge with default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/lldictionary.h | 9 | ||||
-rw-r--r-- | indra/llcommon/llfoldertype.cpp | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/indra/llcommon/lldictionary.h b/indra/llcommon/lldictionary.h index 95178b41e7..4a2bfb9f3f 100644 --- a/indra/llcommon/lldictionary.h +++ b/indra/llcommon/lldictionary.h @@ -76,11 +76,16 @@ public: return dictionary_iter->first; } } - llassert(false); - return Index(-1); + return notFound(); } protected: + virtual Index notFound() const + { + // default is to assert + llassert(false); + return Index(-1); + } void addEntry(Index index, Entry *entry) { if (lookup(index)) diff --git a/indra/llcommon/llfoldertype.cpp b/indra/llcommon/llfoldertype.cpp index 079e670b1a..2610fe9e6a 100644 --- a/indra/llcommon/llfoldertype.cpp +++ b/indra/llcommon/llfoldertype.cpp @@ -59,6 +59,11 @@ class LLFolderDictionary : public LLSingleton<LLFolderDictionary>, { public: LLFolderDictionary(); +protected: + virtual LLFolderType::EType notFound() const + { + return LLFolderType::FT_NONE; + } }; LLFolderDictionary::LLFolderDictionary() |