diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-10-07 14:42:40 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-10-07 14:42:40 (GMT) |
commit | f12c78472b4ea2f6b82c241a345af5da3d4973b9 (patch) | |
tree | d8a25d9352ffbba6e6fc08e678d7465211198851 /src/sortdict.h | |
parent | c52e719895be2a133e6574573584df5a91b98ec6 (diff) | |
download | Doxygen-f12c78472b4ea2f6b82c241a345af5da3d4973b9.zip Doxygen-f12c78472b4ea2f6b82c241a345af5da3d4973b9.tar.gz Doxygen-f12c78472b4ea2f6b82c241a345af5da3d4973b9.tar.bz2 |
Release-1.2.11.1
Diffstat (limited to 'src/sortdict.h')
-rw-r--r-- | src/sortdict.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sortdict.h b/src/sortdict.h index e78d038..b716d33 100644 --- a/src/sortdict.h +++ b/src/sortdict.h @@ -130,6 +130,12 @@ class SDict } #endif } + /*! Remove an item from the dictionary */ + bool remove(const char *key) + { + T *item = m_dict->take(key); + return item ? m_list->remove(item) : FALSE; + } /*! Sorts the members of the dictionary. First appending a number * of members and then sorting them is faster (O(NlogN) than using * inSort() for each member (O(N^2)). @@ -170,7 +176,7 @@ class SDict } /*! Equavalent to find(). */ - T *operator[](const char *key) + T *operator[](const char *key) const { return m_dict->find(key); } |