aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-27 22:12:33 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-27 22:12:33 +0000
commit850f977e83182745549e907f8d86c4272e5f443b (patch)
tree5bb4f4a1487c72236ee78231d197d0338940cce1
parentd79253e87306607a0985abaeba0b87242f3532b7 (diff)
downloadlibbu++-850f977e83182745549e907f8d86c4272e5f443b.tar.gz
libbu++-850f977e83182745549e907f8d86c4272e5f443b.tar.bz2
libbu++-850f977e83182745549e907f8d86c4272e5f443b.tar.xz
libbu++-850f977e83182745549e907f8d86c4272e5f443b.zip
Tweaked a tafnode function.
-rw-r--r--src/tafnode.cpp4
-rw-r--r--src/tafnode.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/tafnode.cpp b/src/tafnode.cpp
index b7cf211..7e171c9 100644
--- a/src/tafnode.cpp
+++ b/src/tafnode.cpp
@@ -56,7 +56,7 @@ const Bu::FString &Bu::TafGroup::getName() const
56 return sName; 56 return sName;
57} 57}
58 58
59void Bu::TafGroup::addChild( Bu::TafNode *pNode ) 59Bu::TafNode *Bu::TafGroup::addChild( Bu::TafNode *pNode )
60{ 60{
61 switch( pNode->getType() ) 61 switch( pNode->getType() )
62 { 62 {
@@ -83,6 +83,8 @@ void Bu::TafGroup::addChild( Bu::TafNode *pNode )
83 } 83 }
84 84
85 lChildren.append( pNode ); 85 lChildren.append( pNode );
86
87 return pNode;
86} 88}
87 89
88const Bu::TafGroup::GroupList &Bu::TafGroup::getChildren( const Bu::FString &sName ) const 90const Bu::TafGroup::GroupList &Bu::TafGroup::getChildren( const Bu::FString &sName ) const
diff --git a/src/tafnode.h b/src/tafnode.h
index 55a5123..0fdcba7 100644
--- a/src/tafnode.h
+++ b/src/tafnode.h
@@ -51,7 +51,7 @@ namespace Bu
51 const PropList &getProperties( const Bu::FString &sName ) const; 51 const PropList &getProperties( const Bu::FString &sName ) const;
52 const TafGroup *getChild( const Bu::FString &sName ) const; 52 const TafGroup *getChild( const Bu::FString &sName ) const;
53 const GroupList &getChildren( const Bu::FString &sName ) const; 53 const GroupList &getChildren( const Bu::FString &sName ) const;
54 void addChild( TafNode *pNode ); 54 TafNode *addChild( TafNode *pNode );
55 const NodeList &getChildren() const; 55 const NodeList &getChildren() const;
56 56
57 private: 57 private: