diff options
-rw-r--r-- | src/tafnode.cpp | 4 | ||||
-rw-r--r-- | src/tafnode.h | 2 |
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 | ||
59 | void Bu::TafGroup::addChild( Bu::TafNode *pNode ) | 59 | Bu::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 | ||
88 | const Bu::TafGroup::GroupList &Bu::TafGroup::getChildren( const Bu::FString &sName ) const | 90 | 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 | |||
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: |