aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-10-26 14:28:56 +0000
committerMike Buland <eichlan@xagasoft.com>2009-10-26 14:28:56 +0000
commitbaaf14f63872ccfab3cb20f72a5cbb56d8cce8a4 (patch)
tree0e974aecf1fee45b30e49d68b430ddac02936e51
parent7cd85a9c952cbdb5b96ca25d8472d79a495ffc86 (diff)
downloadlibbu++-baaf14f63872ccfab3cb20f72a5cbb56d8cce8a4.tar.gz
libbu++-baaf14f63872ccfab3cb20f72a5cbb56d8cce8a4.tar.bz2
libbu++-baaf14f63872ccfab3cb20f72a5cbb56d8cce8a4.tar.xz
libbu++-baaf14f63872ccfab3cb20f72a5cbb56d8cce8a4.zip
Minor, cosmetic change to the TafWriter. It now writes group names that are
blank as they were intended, i.e. {: }, not {"": }.
-rw-r--r--src/tafwriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tafwriter.cpp b/src/tafwriter.cpp
index c5fc730..0271c43 100644
--- a/src/tafwriter.cpp
+++ b/src/tafwriter.cpp
@@ -28,7 +28,8 @@ void Bu::TafWriter::writeGroup( const Bu::TafGroup *pRoot )
28{ 28{
29 ident(); 29 ident();
30 sOut.write("{", 1 ); 30 sOut.write("{", 1 );
31 writeString( pRoot->getName() ); 31 if( pRoot->getName() )
32 writeString( pRoot->getName() );
32 sOut.write(":\n", 2 ); 33 sOut.write(":\n", 2 );
33 iDepth++; 34 iDepth++;
34 const Bu::TafGroup::NodeList &nl = pRoot->getChildren(); 35 const Bu::TafGroup::NodeList &nl = pRoot->getChildren();