summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldictionary.h
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2010-01-22 14:03:13 -0800
committerRick Pasetto <rick@lindenlab.com>2010-01-22 14:03:13 -0800
commit5a83247f038e327465bf88127f60750306507ed3 (patch)
tree2bf66d6cc4c949eeda17688b66d13fd82adf6da4 /indra/llcommon/lldictionary.h
parent420430b8f59902a65cd1847ea8b596f82a283e6a (diff)
Fix assert in lldictionary as used by llfoldertype
Review #88 This assert might be valid in general, but LLFolderType has a valid reason for getting "not found"
Diffstat (limited to 'indra/llcommon/lldictionary.h')
-rw-r--r--indra/llcommon/lldictionary.h9
1 files changed, 7 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))