summaryrefslogtreecommitdiff
path: root/src/tests/archive.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-10-01 21:48:33 +0000
committerMike Buland <eichlan@xagasoft.com>2008-10-01 21:48:33 +0000
commitb6f57560fb7fae00f0854ca19158bd5512e5405b (patch)
treeaa3c7012ee2b1ee9b97b1ba136217cbf6a84d587 /src/tests/archive.cpp
parentd872f7e07c5367f251cf5ebb70a03916251f5306 (diff)
downloadlibbu++-b6f57560fb7fae00f0854ca19158bd5512e5405b.tar.gz
libbu++-b6f57560fb7fae00f0854ca19158bd5512e5405b.tar.bz2
libbu++-b6f57560fb7fae00f0854ca19158bd5512e5405b.tar.xz
libbu++-b6f57560fb7fae00f0854ca19158bd5512e5405b.zip
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.
Diffstat (limited to 'src/tests/archive.cpp')
-rw-r--r--src/tests/archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/archive.cpp b/src/tests/archive.cpp
index 698d37c..131d4de 100644
--- a/src/tests/archive.cpp
+++ b/src/tests/archive.cpp
@@ -12,7 +12,7 @@ using namespace Bu;
12 12
13int main() 13int main()
14{ 14{
15 File f("test.dat", "wb"); 15 File f("test.dat", File::Write );
16 Archive ar( f, Archive::save ); 16 Archive ar( f, Archive::save );
17 17
18 std::string s("Hello there"); 18 std::string s("Hello there");