mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Unify String::toInt methods
This commit is contained in:
parent
9e41939eb1
commit
aa801e58ec
@ -303,15 +303,6 @@ namespace TagLib {
|
||||
*/
|
||||
ByteVector data(Type t) const;
|
||||
|
||||
/*!
|
||||
* Convert the string to an integer.
|
||||
*
|
||||
* Returns the integer if the conversion was successfull or 0 if the
|
||||
* string does not represent a number.
|
||||
*/
|
||||
// BIC: merge with the method below
|
||||
int toInt() const;
|
||||
|
||||
/*!
|
||||
* Convert the string to an integer.
|
||||
*
|
||||
@ -319,7 +310,7 @@ namespace TagLib {
|
||||
* true and returns the integer. Otherwise it sets \a *ok to false
|
||||
* and the result is undefined.
|
||||
*/
|
||||
int toInt(bool *ok) const;
|
||||
int toInt(bool *ok = 0) const;
|
||||
|
||||
/*!
|
||||
* Returns a string with the leading and trailing whitespace stripped.
|
||||
|
Loading…
x
Reference in New Issue
Block a user