[8395] Improved TimeStringToSecs

This commit is contained in:
arrai 2009-08-20 01:12:38 +02:00
parent 9eb5a3eea1
commit 4d0eee5393
2 changed files with 2 additions and 6 deletions

View file

@ -135,12 +135,8 @@ uint32 TimeStringToSecs(const std::string& timestring)
{
if(isdigit(*itr))
{
std::string str; //very complicated typecast char->const char*; is there no better way?
str += *itr;
const char* tmp = str.c_str();
buffer*=10;
buffer+=atoi(tmp);
buffer+= (*itr)-'0';
}
else
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8394"
#define REVISION_NR "8395"
#endif // __REVISION_NR_H__