From b6f57560fb7fae00f0854ca19158bd5512e5405b Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 1 Oct 2008 21:48:33 +0000 Subject: This commit is sure to break things. This should be a very, very minor change. What changed API-Wise: - I deleted a constructor in Bu::File that shouldn't have been used anyway. - I changed it from using fopen style mode strings to using libbu++ style mode flags. Check the docs for the complete list, but basically instead of "wb" you do Bu::File::Write, and so on, you can or any of the libbu++ flags together. There is no binary/text mode, it just writes whatever you tell it to verbatim (binary mode). Lots of extras are supported. Nothing else should have changed (except now the file stream is unbuffered, like all the other streams). Sorry if this breaks anything, if it's too annoying, use the last revision for a while longer. --- src/tests/archive2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tests/archive2.cpp') diff --git a/src/tests/archive2.cpp b/src/tests/archive2.cpp index 6d3c2c1..ab02d04 100644 --- a/src/tests/archive2.cpp +++ b/src/tests/archive2.cpp @@ -82,7 +82,7 @@ void write() { C *c = new C; - Bu::File f( "test.archive", "wb"); + Bu::File f( "test.archive", Bu::File::Write ); Bu::Archive ar( f, Bu::Archive::save ); ar << c; } -- cgit v1.2.3