From 2913e17def90109ac83922e55a9df8999844ec58 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Jul 2007 00:55:31 +0000 Subject: Since libbu++-reorg is now the trunk, build has been updated to work with it. --- src/cache.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cache.cpp') diff --git a/src/cache.cpp b/src/cache.cpp index 61d0d28..b8e94ec 100644 --- a/src/cache.cpp +++ b/src/cache.cpp @@ -1,6 +1,6 @@ #include "cache.h" -#include "serializer.h" -#include "staticstring.h" +#include "bu/fstring.h" +#include "bu/archive.h" Cache::Cache() { @@ -15,14 +15,14 @@ Cache::~Cache() } } -void Cache::serialize( class Serializer &ar ) +void Cache::archive( class Bu::Archive &ar ) { if( ar.isLoading() ) { uint32_t sCache, sData, sIndex; ar >> sIndex; - StaticString *Index = new StaticString[sIndex]; + Bu::FString *Index = new Bu::FString[sIndex]; for( uint32_t i = 0; i < sIndex; i++ ) { ar >> Index[i]; @@ -39,10 +39,10 @@ void Cache::serialize( class Serializer &ar ) for( uint32_t j = 0; j < sData; j++ ) { ar >> nTmp; - lData.push_back( Index[nTmp].getString() ); + lData.push_back( Index[nTmp].getStr() ); } ar >> nTmp; - mCache[Index[nTmp].getString()] = e; + mCache[Index[nTmp].getStr()] = e; } /* uint32_t sCache, sData; -- cgit v1.2.3