Unify String::toInt methods

This commit is contained in:
Lukáš Lalinský 2012-11-04 10:04:06 +01:00
parent 9e41939eb1
commit aa801e58ec

View File

@ -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.