diff options
Diffstat (limited to '')
-rw-r--r-- | src/tests/taf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/taf.cpp b/src/tests/taf.cpp index 281b9c4..859ecfc 100644 --- a/src/tests/taf.cpp +++ b/src/tests/taf.cpp | |||
@@ -13,13 +13,13 @@ int main( int argc, char *argv[] ) | |||
13 | { | 13 | { |
14 | if( argc == 1 ) | 14 | if( argc == 1 ) |
15 | { | 15 | { |
16 | Bu::File f("test.taf", "rb"); | 16 | Bu::File f("test.taf", Bu::File::Read ); |
17 | Bu::TafReader tr( f ); | 17 | Bu::TafReader tr( f ); |
18 | 18 | ||
19 | Bu::TafGroup *pGroup = tr.readGroup(); | 19 | Bu::TafGroup *pGroup = tr.readGroup(); |
20 | 20 | ||
21 | { | 21 | { |
22 | Bu::File fo("out.taf", "wb"); | 22 | Bu::File fo("out.taf", Bu::File::Write ); |
23 | Bu::TafWriter tw( fo ); | 23 | Bu::TafWriter tw( fo ); |
24 | tw.writeGroup( pGroup ); | 24 | tw.writeGroup( pGroup ); |
25 | } | 25 | } |
@@ -28,13 +28,13 @@ int main( int argc, char *argv[] ) | |||
28 | } | 28 | } |
29 | else if( argc == 3 ) | 29 | else if( argc == 3 ) |
30 | { | 30 | { |
31 | Bu::File f( argv[1], "rb"); | 31 | Bu::File f( argv[1], Bu::File::Read ); |
32 | Bu::TafReader tr( f ); | 32 | Bu::TafReader tr( f ); |
33 | 33 | ||
34 | Bu::TafGroup *pGroup = tr.readGroup(); | 34 | Bu::TafGroup *pGroup = tr.readGroup(); |
35 | 35 | ||
36 | { | 36 | { |
37 | Bu::File fo( argv[2], "wb"); | 37 | Bu::File fo( argv[2], Bu::File::Write ); |
38 | Bu::TafWriter tw( fo ); | 38 | Bu::TafWriter tw( fo ); |
39 | tw.writeGroup( pGroup ); | 39 | tw.writeGroup( pGroup ); |
40 | } | 40 | } |