mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 13:35:04 -04:00
epee: some more minor JSON parsing speedup
This commit is contained in:
parent
e4b049da05
commit
59776a64ff
4 changed files with 11 additions and 8 deletions
|
@ -42,6 +42,8 @@
|
|||
#include <type_traits>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include "misc_log_ex.h"
|
||||
#include "storages/parserse_base_utils.h"
|
||||
#include "hex.h"
|
||||
#include "memwipe.h"
|
||||
#include "mlocker.h"
|
||||
|
@ -126,7 +128,7 @@ DISABLE_GCC_WARNING(maybe-uninitialized)
|
|||
{
|
||||
for (char c : str_id)
|
||||
{
|
||||
if (!std::isdigit(c))
|
||||
if (!epee::misc_utils::parse::isdigit(c))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue