HexStr: don't build a vector<char> first

Also const correctness for lookup tables in hex functions throughout the code.
This commit is contained in:
Wladimir J. van der Laan
2012-09-09 14:52:07 +02:00
parent 963af6449f
commit ac4e7f6269
4 changed files with 7 additions and 7 deletions

View File

@@ -424,7 +424,7 @@ bool ParseMoney(const char* pszIn, int64& nRet)
}
static signed char phexdigit[256] =
static const signed char phexdigit[256] =
{ -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,