From 35fc3769ceb58328f124dcb1c24b62a35910b0b3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 16 Jun 2015 12:20:08 +0000 Subject: Const chnaged functions. I think this makes sense. --- src/unstable/cacheobject.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/unstable/cacheobject.h b/src/unstable/cacheobject.h index 47e09de..e519a9c 100644 --- a/src/unstable/cacheobject.h +++ b/src/unstable/cacheobject.h @@ -93,6 +93,14 @@ namespace Bu this->bChanged = bChanged; } + void changed( bool bChanged=true ) const // not really! + { + if( bChanged == true ) + return; + + this->bChanged = bChanged; + } + CacheType *getCache() { return pCache; @@ -135,7 +143,7 @@ namespace Bu private: CacheType *pCache; EntryType *pEntry; - bool bChanged; + mutable bool bChanged; }; } -- cgit v1.2.3