Modernize: replace typedef with using

This commit is contained in:
badaix 2020-09-21 16:26:04 +02:00
parent f388449c0a
commit f1e672d375
7 changed files with 12 additions and 14 deletions

View file

@ -34,7 +34,7 @@ namespace
{
string hex2str(string input)
{
typedef unsigned char byte;
using byte = unsigned char;
unsigned long x = strtoul(input.c_str(), nullptr, 16);
byte a[] = {byte(x >> 24), byte(x >> 16), byte(x >> 8), byte(x), 0};
return string((char*)a);