From 7622272c3998a5eb745ee44678ac26b12401ddb2 Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 13 Oct 2013 18:26:54 +0200 Subject: [PATCH] const version of get() which won't barf when at or behind end of memory. Can be used to test for end of sequence. --- indra/llcommon/llstrider.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/llcommon/llstrider.h b/indra/llcommon/llstrider.h index de723657c8..75493acf62 100755 --- a/indra/llcommon/llstrider.h +++ b/indra/llcommon/llstrider.h @@ -85,6 +85,11 @@ public: return mObjectp; } + Object const* get() const + { + return mObjectp; + } + Object* operator->() { if( !assertValid( mBytep ) )