diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-04-02 14:33:55 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-04-02 14:33:55 +0000 |
commit | e9e5da32b2e154698482b7ec6b7ab2098cd849c8 (patch) | |
tree | 1e9d2168a27b3979398285909dd10c362c03545a /src/cachestorenids.h | |
parent | b4ab27db8a97f0a56a61bd56480cfbe08a1f3399 (diff) | |
download | libbu++-e9e5da32b2e154698482b7ec6b7ab2098cd849c8.tar.gz libbu++-e9e5da32b2e154698482b7ec6b7ab2098cd849c8.tar.bz2 libbu++-e9e5da32b2e154698482b7ec6b7ab2098cd849c8.tar.xz libbu++-e9e5da32b2e154698482b7ec6b7ab2098cd849c8.zip |
Removed some uses of printf in libbu++, I would like to get rid of all of them
some day, but I'm not in much of a rush, I just wanted to do a quick survey.
Also added the Formatter::flush special stream value, so now you can do a:
sio << "hello" << sio.flush; and it'll flush output immediately.
I also tweaked a few things in the cachestore and cache so that they actually
throw exceptions and the like instead of just printing out some garbage.
Diffstat (limited to '')
-rw-r--r-- | src/cachestorenids.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cachestorenids.h b/src/cachestorenids.h index c6a00ce..0f7c72c 100644 --- a/src/cachestorenids.h +++ b/src/cachestorenids.h | |||
@@ -57,7 +57,7 @@ namespace Bu | |||
57 | nStore.initialize( iBlockSize, iPreAllocate ); | 57 | nStore.initialize( iBlockSize, iPreAllocate ); |
58 | int iStream = nStore.createStream(); | 58 | int iStream = nStore.createStream(); |
59 | if( iStream != 0 ) | 59 | if( iStream != 0 ) |
60 | printf("That's...horrible...id = %d.\n\n", iStream ); | 60 | throw Bu::ExceptionBase("That's...horrible...id = %d.\n\n", iStream ); |
61 | NidsStream ns = nStore.openStream( 0 ); | 61 | NidsStream ns = nStore.openStream( 0 ); |
62 | Bu::Archive ar( ns, Bu::Archive::save ); | 62 | Bu::Archive ar( ns, Bu::Archive::save ); |
63 | ar << hId; | 63 | ar << hId; |