diff options
author | Mike Buland <eichlan@xagasoft.com> | 2015-06-16 12:20:08 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2015-06-16 12:20:08 +0000 |
commit | 35fc3769ceb58328f124dcb1c24b62a35910b0b3 (patch) | |
tree | ddc436181190ddf59df9386dc1e5e7b3e0455d26 | |
parent | d8ef3caf2d9be17c3fe54a51b65d321fcd768d30 (diff) | |
download | libbu++-35fc3769ceb58328f124dcb1c24b62a35910b0b3.tar.gz libbu++-35fc3769ceb58328f124dcb1c24b62a35910b0b3.tar.bz2 libbu++-35fc3769ceb58328f124dcb1c24b62a35910b0b3.tar.xz libbu++-35fc3769ceb58328f124dcb1c24b62a35910b0b3.zip |
Const chnaged functions. I think this makes sense.
Diffstat (limited to '')
-rw-r--r-- | src/unstable/cacheobject.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 | |||
93 | this->bChanged = bChanged; | 93 | this->bChanged = bChanged; |
94 | } | 94 | } |
95 | 95 | ||
96 | void changed( bool bChanged=true ) const // not really! | ||
97 | { | ||
98 | if( bChanged == true ) | ||
99 | return; | ||
100 | |||
101 | this->bChanged = bChanged; | ||
102 | } | ||
103 | |||
96 | CacheType *getCache() | 104 | CacheType *getCache() |
97 | { | 105 | { |
98 | return pCache; | 106 | return pCache; |
@@ -135,7 +143,7 @@ namespace Bu | |||
135 | private: | 143 | private: |
136 | CacheType *pCache; | 144 | CacheType *pCache; |
137 | EntryType *pEntry; | 145 | EntryType *pEntry; |
138 | bool bChanged; | 146 | mutable bool bChanged; |
139 | }; | 147 | }; |
140 | } | 148 | } |
141 | 149 | ||