From 850f977e83182745549e907f8d86c4272e5f443b Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 27 Jun 2007 22:12:33 +0000 Subject: Tweaked a tafnode function. --- src/tafnode.cpp | 4 +++- src/tafnode.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 return sName; } -void Bu::TafGroup::addChild( Bu::TafNode *pNode ) +Bu::TafNode *Bu::TafGroup::addChild( Bu::TafNode *pNode ) { switch( pNode->getType() ) { @@ -83,6 +83,8 @@ void Bu::TafGroup::addChild( Bu::TafNode *pNode ) } lChildren.append( pNode ); + + return pNode; } const 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 const PropList &getProperties( const Bu::FString &sName ) const; const TafGroup *getChild( const Bu::FString &sName ) const; const GroupList &getChildren( const Bu::FString &sName ) const; - void addChild( TafNode *pNode ); + TafNode *addChild( TafNode *pNode ); const NodeList &getChildren() const; private: -- cgit v1.2.3