replace tabs space
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@334 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
570f0ed652
commit
7fe4c81ff0
28 changed files with 799 additions and 778 deletions
|
@ -319,7 +319,7 @@ private:
|
|||
#ifdef _MSC_VER
|
||||
const int stored = _snprintf(resultBuf,
|
||||
#else
|
||||
const int stored = snprintf(resultBuf,
|
||||
const int stored = snprintf(resultBuf,
|
||||
#endif
|
||||
sizeof(resultBuf) / sizeof(Char), fmtBuf, n);
|
||||
if (stored < 0) {
|
||||
|
@ -408,14 +408,14 @@ private:
|
|||
}
|
||||
|
||||
void ParseDecimalUInt(unsigned int& dest) {
|
||||
if (!std::isdigit(*format_, std::locale())) return;
|
||||
if (!std::isdigit(*format_, std::locale())) return;
|
||||
unsigned int r = 0;
|
||||
do {
|
||||
// TODO: inefficient - rewrite
|
||||
r *= 10;
|
||||
r += *format_ - '0';
|
||||
++format_;
|
||||
} while (std::isdigit(*format_, std::locale()));
|
||||
} while (std::isdigit(*format_, std::locale()));
|
||||
dest = r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue