aboutsummaryrefslogtreecommitdiff
path: root/src/cachestorefiles.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-02-04 00:18:07 +0000
committerMike Buland <eichlan@xagasoft.com>2011-02-04 00:18:07 +0000
commit2aeffdea0647df45c808d8203972ad1c0de9a04f (patch)
tree3689e342efbf56b0e3a77cdc7d1c865c08da0291 /src/cachestorefiles.h
parenta41a8d21e9f7fde7c69c1748a76c9058b58ebaf3 (diff)
downloadlibbu++-2aeffdea0647df45c808d8203972ad1c0de9a04f.tar.gz
libbu++-2aeffdea0647df45c808d8203972ad1c0de9a04f.tar.bz2
libbu++-2aeffdea0647df45c808d8203972ad1c0de9a04f.tar.xz
libbu++-2aeffdea0647df45c808d8203972ad1c0de9a04f.zip
Some tweaks to the string unit test.
Diffstat (limited to '')
-rw-r--r--src/cachestorefiles.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cachestorefiles.h b/src/cachestorefiles.h
index 426cf83..10b2c1b 100644
--- a/src/cachestorefiles.h
+++ b/src/cachestorefiles.h
@@ -68,19 +68,19 @@ namespace Bu
68 68
69 virtual obtype *load( const keytype &key ) 69 virtual obtype *load( const keytype &key )
70 { 70 {
71 try 71// try
72 { 72// {
73 Bu::MemBuf mb; 73 Bu::MemBuf mb;
74 Bu::Formatter f( mb ); 74 Bu::Formatter f( mb );
75 f << sPrefix << "/" << key; 75 f << sPrefix << "/" << key;
76 Bu::File fIn( mb.getString(), Bu::File::Read ); 76 Bu::File fIn( mb.getString(), Bu::File::Read );
77 obtype *pOb = __cacheStoreFilesLoad<keytype, obtype>( fIn, key ); 77 obtype *pOb = __cacheStoreFilesLoad<keytype, obtype>( fIn, key );
78 return pOb; 78 return pOb;
79 } 79// }
80 catch( std::exception &e ) 80// catch( std::exception &e )
81 { 81// {
82 throw Bu::HashException( e.what() ); 82// throw Bu::HashException( e.what() );
83 } 83// }
84 } 84 }
85 85
86 virtual void unload( obtype *pObj, const keytype & ) 86 virtual void unload( obtype *pObj, const keytype & )