summaryrefslogtreecommitdiff
path: root/src/tests/cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/cache.cpp')
-rw-r--r--src/tests/cache.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp
index 20b384e..7982b2d 100644
--- a/src/tests/cache.cpp
+++ b/src/tests/cache.cpp
@@ -171,6 +171,8 @@ namespace Bu
171 default: 171 default:
172 throw Bu::ExceptionBase("Flagrant error! Invalid type!"); 172 throw Bu::ExceptionBase("Flagrant error! Invalid type!");
173 } 173 }
174
175 return NULL;
174 } 176 }
175} 177}
176 178
@@ -179,7 +181,7 @@ typedef Bu::CachePtr<Bu::Uuid, SubSomethingA, Something> SomethingAPtr;
179typedef Bu::CachePtr<Bu::Uuid, SubSomethingB, Something> SomethingBPtr; 181typedef Bu::CachePtr<Bu::Uuid, SubSomethingB, Something> SomethingBPtr;
180typedef Bu::MyriadCache<Bu::Uuid, Something> SomethingCache; 182typedef Bu::MyriadCache<Bu::Uuid, Something> SomethingCache;
181 183
182int main( int argc, char *argv[] ) 184int main( int, char *[] )
183{ 185{
184 Bu::File fStore("test.myr", Bu::File::Create|Bu::File::ReadWrite); 186 Bu::File fStore("test.myr", Bu::File::Create|Bu::File::ReadWrite);
185 SomethingCache c( fStore ); 187 SomethingCache c( fStore );
@@ -196,7 +198,6 @@ int main( int argc, char *argv[] )
196 198
197 SomethingCache::KeyList lKeys = c.getKeys(); 199 SomethingCache::KeyList lKeys = c.getKeys();
198 Bu::println("Count: %1").arg( lKeys.getSize() ); 200 Bu::println("Count: %1").arg( lKeys.getSize() );
199 int j = 0;
200 for( SomethingCache::KeyList::iterator i = lKeys.begin(); i; i++ ) 201 for( SomethingCache::KeyList::iterator i = lKeys.begin(); i; i++ )
201 { 202 {
202 Bu::println(" - %1: '%2'").arg( *i ).arg( c.get( *i )->toString() ); 203 Bu::println(" - %1: '%2'").arg( *i ).arg( c.get( *i )->toString() );