From aa801e58ecc57b86b35124220d63a81f176e3aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Sun, 4 Nov 2012 10:04:06 +0100 Subject: [PATCH] Unify String::toInt methods --- taglib/toolkit/tstring.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/taglib/toolkit/tstring.h b/taglib/toolkit/tstring.h index 759a175a..bcbe28fd 100644 --- a/taglib/toolkit/tstring.h +++ b/taglib/toolkit/tstring.h @@ -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.