aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-01-25 16:42:40 +0000
committerMike Buland <eichlan@xagasoft.com>2010-01-25 16:42:40 +0000
commit0861fdb652408dcdbd2e7b60513f3fa24696e610 (patch)
tree61b1af5a86e064ade1acc271ca7898a698d87a17 /src/tests
parent3e824e91146cc9e2454f54375d47e359aa21b8d4 (diff)
downloadlibbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.tar.gz
libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.tar.bz2
libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.tar.xz
libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.zip
The order of key, object in all of the cache related systems has beed fixed,
key just belongs first, that's all there is to it.
Diffstat (limited to '')
-rw-r--r--src/tests/cache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp
index a098145..11a4215 100644
--- a/src/tests/cache.cpp
+++ b/src/tests/cache.cpp
@@ -58,7 +58,7 @@ namespace Bu {
58 } 58 }
59} 59}
60 60
61class BobStore : public Bu::CacheStore<Bob, long> 61class BobStore : public Bu::CacheStore<long, Bob>
62{ 62{
63public: 63public:
64 BobStore() : 64 BobStore() :
@@ -158,7 +158,7 @@ private:
158 long cLastId; 158 long cLastId;
159}; 159};
160 160
161class BobCalc : public Bu::CacheCalc<Bob, long> 161class BobCalc : public Bu::CacheCalc<long, Bob>
162{ 162{
163public: 163public:
164 BobCalc() 164 BobCalc()
@@ -189,7 +189,7 @@ private:
189int main( int argc, char *argv[] ) 189int main( int argc, char *argv[] )
190{ 190{
191 TRACE( argc, argv ); 191 TRACE( argc, argv );
192 typedef Bu::Cache<Bob, long> BobCache; 192 typedef Bu::Cache<long, Bob> BobCache;
193 typedef BobCache::Ptr BobPtr; 193 typedef BobCache::Ptr BobPtr;
194 194
195 if( argc < 3 ) 195 if( argc < 3 )