From fc96db275f65a9d5adc4a40758f50297fc5bdbf0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 10 Apr 2009 06:23:07 +0000 Subject: Added some new goodness to the fbasicstring, fixing some inconsistancies and adding some more helpers. Hopefully this won't affect anything, but if it complains about any functions not working the way they used to, see if they're returning an int or an iterator. I made several functions handle iterators instead of ints, the int versions have an "Idx" suffix added now. I'm trying to switch entirely to iterators to reduce flattening and increase performance and stability. Also...something must have changed in the cache code... --- src/tests/cache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp index 8d95a9d..5d542ed 100644 --- a/src/tests/cache.cpp +++ b/src/tests/cache.cpp @@ -171,6 +171,7 @@ public: virtual bool shouldSync( Bob *, const long &, time_t ) { + return false; } private: @@ -224,9 +225,9 @@ int main( int argc, char *argv[] ) case 'l': { BobCache::Ptr pBob = cBob.getLazy( strtol( argv[2], NULL, 0 ) ); - printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); + printf("isBound: %s\n", pBob.isBound()?"yes":"no"); printf("Value = %d\n", pBob->getInt() ); - printf("isLoaded: %s\n", pBob.isLoaded()?"yes":"no"); + printf("isBound: %s\n", pBob.isBound()?"yes":"no"); } return 0; } -- cgit v1.2.3