diff options
Diffstat (limited to 'src/unit/taf.cpp')
-rw-r--r-- | src/unit/taf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unit/taf.cpp b/src/unit/taf.cpp index 4e22ab1..0a97eba 100644 --- a/src/unit/taf.cpp +++ b/src/unit/taf.cpp | |||
@@ -29,14 +29,14 @@ public: | |||
29 | { | 29 | { |
30 | #define FN_TMP ("/tmp/tmpXXXXXXXX") | 30 | #define FN_TMP ("/tmp/tmpXXXXXXXX") |
31 | Bu::FString sFnTmp(FN_TMP); | 31 | Bu::FString sFnTmp(FN_TMP); |
32 | Bu::File fOut = Bu::File::tempFile( sFnTmp, "wb" ); | 32 | Bu::File fOut = Bu::File::tempFile( sFnTmp, Bu::File::Write ); |
33 | const char *data = | 33 | const char *data = |
34 | "{test: name=\"Bob\"}" | 34 | "{test: name=\"Bob\"}" |
35 | ; | 35 | ; |
36 | fOut.write(data,strlen(data)); | 36 | fOut.write(data,strlen(data)); |
37 | fOut.close(); | 37 | fOut.close(); |
38 | 38 | ||
39 | Bu::File fIn(sFnTmp.getStr(), "rb"); | 39 | Bu::File fIn(sFnTmp.getStr(), Bu::File::Read ); |
40 | Bu::TafReader tr(fIn); | 40 | Bu::TafReader tr(fIn); |
41 | 41 | ||
42 | Bu::TafGroup *tn = tr.readGroup(); | 42 | Bu::TafGroup *tn = tr.readGroup(); |