From 51eef132bb2bb67e658756eaebeae5e52c13de98 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 18 Jul 2013 02:09:29 +0000 Subject: Fixed caching changed issue. The cache now marks objects as unchanged for you after they are saved. It needs some more testing, but the theory is sound. --- src/tests/cache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tests/cache.cpp') 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 default: throw Bu::ExceptionBase("Flagrant error! Invalid type!"); } + + return NULL; } } @@ -179,7 +181,7 @@ typedef Bu::CachePtr SomethingAPtr; typedef Bu::CachePtr SomethingBPtr; typedef Bu::MyriadCache SomethingCache; -int main( int argc, char *argv[] ) +int main( int, char *[] ) { Bu::File fStore("test.myr", Bu::File::Create|Bu::File::ReadWrite); SomethingCache c( fStore ); @@ -196,7 +198,6 @@ int main( int argc, char *argv[] ) SomethingCache::KeyList lKeys = c.getKeys(); Bu::println("Count: %1").arg( lKeys.getSize() ); - int j = 0; for( SomethingCache::KeyList::iterator i = lKeys.begin(); i; i++ ) { Bu::println(" - %1: '%2'").arg( *i ).arg( c.get( *i )->toString() ); -- cgit v1.2.3