mirror of
https://github.com/znc/znc.git
synced 2026-08-05 08:23:12 +02:00
Get rid of most strtoul() and atoi() calls and use CString's features instead
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1320 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -924,6 +924,7 @@ short CString::ToShort() const { return strtoul(this->c_str(), (char**) NULL, 10
|
||||
unsigned short CString::ToUShort() const { return strtoul(this->c_str(), (char**) NULL, 10); }
|
||||
unsigned int CString::ToUInt() const { return strtoul(this->c_str(), (char**) NULL, 10); }
|
||||
int CString::ToInt() const { return strtoul(this->c_str(), (char**) NULL, 10); }
|
||||
long CString::ToLong() const { return strtoul(this->c_str(), (char**) NULL, 10); }
|
||||
unsigned long CString::ToULong() const { return strtoul(c_str(), NULL, 10); }
|
||||
unsigned long long CString::ToULongLong() const { return strtoull(c_str(), NULL, 10); }
|
||||
long long CString::ToLongLong() const { return strtoll(c_str(), NULL, 10); }
|
||||
|
||||
Reference in New Issue
Block a user