diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-08-26 04:12:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-08-26 04:12:51 +0000 |
commit | ecedf7a7d87553116c570ba789b6405ac5eff92d (patch) | |
tree | 754eccf96c99ef0acd3a49d99e6a2a44447d3c90 /src/tests/taf.cpp | |
parent | 4873aad0fe15b3f46c6372b661ce926795922a6e (diff) | |
download | libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.tar.gz libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.tar.bz2 libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.tar.xz libbu++-ecedf7a7d87553116c570ba789b6405ac5eff92d.zip |
Corrected a bug in the Bu::TafReader, it was getting confused when a stray colon
(common in web addresses) was put in the middle of a property list, now it
doesn't get confused, it just complains bitterly and refuses to work.
Diffstat (limited to 'src/tests/taf.cpp')
-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 e3da120..cb9b75f 100644 --- a/src/tests/taf.cpp +++ b/src/tests/taf.cpp | |||
@@ -8,16 +8,16 @@ int main() | |||
8 | Bu::TafReader tr( f ); | 8 | Bu::TafReader tr( f ); |
9 | 9 | ||
10 | Bu::TafGroup *pGroup = tr.readGroup(); | 10 | Bu::TafGroup *pGroup = tr.readGroup(); |
11 | 11 | /* | |
12 | const Bu::TafGroup *pStats = pGroup->getChild("stats"); | 12 | const Bu::TafGroup *pStats = pGroup->getChild("stats"); |
13 | printf("%s\n", pStats->getName().getStr() ); | 13 | printf("%s\n", pStats->getName().getStr() ); |
14 | printf(" str = %s\n", pStats->getProperty("str").getStr() ); | 14 | printf(" str = %s\n", pStats->getProperty("str").getStr() );*/ |
15 | 15 | /* | |
16 | { | 16 | { |
17 | Bu::File fo("out.taf", "wb"); | 17 | Bu::File fo("out.taf", "wb"); |
18 | Bu::TafWriter tw( fo ); | 18 | Bu::TafWriter tw( fo ); |
19 | tw.writeGroup( pGroup ); | 19 | tw.writeGroup( pGroup ); |
20 | } | 20 | }*/ |
21 | 21 | ||
22 | delete pGroup; | 22 | delete pGroup; |
23 | } | 23 | } |