summaryrefslogtreecommitdiff
path: root/src/archive.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-04-02 14:33:55 +0000
committerMike Buland <eichlan@xagasoft.com>2009-04-02 14:33:55 +0000
commite9e5da32b2e154698482b7ec6b7ab2098cd849c8 (patch)
tree1e9d2168a27b3979398285909dd10c362c03545a /src/archive.cpp
parentb4ab27db8a97f0a56a61bd56480cfbe08a1f3399 (diff)
downloadlibbu++-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 'src/archive.cpp')
-rw-r--r--src/archive.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/archive.cpp b/src/archive.cpp
index c1c89cc..0efa145 100644
--- a/src/archive.cpp
+++ b/src/archive.cpp
@@ -459,14 +459,12 @@ Bu::Archive &Bu::operator>>(Bu::Archive &s, Bu::Archival &p)
459 459
460Bu::Archive &Bu::operator<<(Bu::Archive &ar, class Bu::Archival *p ) 460Bu::Archive &Bu::operator<<(Bu::Archive &ar, class Bu::Archival *p )
461{ 461{
462 printf("Writing a pointer to an archive...\n");
463 ar << *p; 462 ar << *p;
464 return ar; 463 return ar;
465} 464}
466 465
467Bu::Archive &Bu::operator>>(Bu::Archive &ar, class Bu::Archival *p ) 466Bu::Archive &Bu::operator>>(Bu::Archive &ar, class Bu::Archival *p )
468{ 467{
469 printf("Reading a pointer to an archive...\n");
470 ar >> *p; 468 ar >> *p;
471 return ar; 469 return ar;
472} 470}