| author | Gustavo J. A. M. Carneiro <gjc@inescporto.pt> |
| Thu, 14 Feb 2008 17:48:15 +0000 | |
| changeset 2331 | 9df551386a93 |
| parent 2330 | 6ae8117d4ffe |
| child 2332 | 200875532591 |
| src/common/tags.h | file | annotate | diff | comparison | revisions |
--- a/src/common/tags.h Wed Feb 13 09:55:15 2008 -0500 +++ b/src/common/tags.h Thu Feb 14 17:48:15 2008 +0000 @@ -128,7 +128,15 @@ // input to this function is not a subclass of the Tag class. parent = &tag; NS_ASSERT (sizeof (T) <= Tags::SIZE); - return Remove (T::GetUid ()); + if (Peek (tag)) + { + Remove (T::GetUid ()); + return true; + } + else + { + return false; + } } template <typename T>