mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
A couple of things pointed out by a colleage -- fix ByteVector::size()
and make the return type semantics consistant for methods that modify the object (specifically, return a reference instead of void). git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@460002 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -89,13 +89,13 @@ namespace TagLib {
|
||||
* Inserts \a value under \a key in the map. If a value for \a key already
|
||||
* exists it will be overwritten.
|
||||
*/
|
||||
void insert(const Key &key, const T &value);
|
||||
Map<Key, T> &insert(const Key &key, const T &value);
|
||||
|
||||
/*!
|
||||
* Removes all of the elements from elements from the map. This however
|
||||
* will not delete pointers if the mapped type is a pointer type.
|
||||
*/
|
||||
void clear();
|
||||
Map<Key, T> &clear();
|
||||
|
||||
/*!
|
||||
* The number of elements in the map.
|
||||
@ -129,7 +129,7 @@ namespace TagLib {
|
||||
/*!
|
||||
* Erase the item at \a it from the list.
|
||||
*/
|
||||
void erase(Iterator it);
|
||||
Map<Key, T> &erase(Iterator it);
|
||||
|
||||
/*!
|
||||
* Returns a reference to the value associated with \a key.
|
||||
|
Reference in New Issue
Block a user