From 8bc5ac336d5d684341a05e97d1cb1b18ecba0331 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 27 Jan 2009 00:31:24 +0000 Subject: Hey, I think that'll fix some things valgrind was bitching about. Apparently BitString is...not so good...I may have to rewrite big chunks. --- src/cachestorenids.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/cachestorenids.h') diff --git a/src/cachestorenids.h b/src/cachestorenids.h index 0d8ff64..62d1555 100644 --- a/src/cachestorenids.h +++ b/src/cachestorenids.h @@ -9,6 +9,9 @@ namespace Bu { + template + keytype __cacheGetKey( const obtype *pObj ); + template class CacheStoreNids : public CacheStore { @@ -62,11 +65,9 @@ namespace Bu delete pObj; } - virtual keytype getKey( obtype *pSrc )=0; - virtual keytype create( obtype *pSrc ) { - keytype key = getKey( pSrc ); + keytype key = __cacheGetKey( pSrc ); int iStream = nStore.createStream(); hId.insert( key, iStream ); printf("Creating stream: %d\n", iStream ); -- cgit v1.2.3