mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-08 12:17:57 +02:00
Modernize: replace typedef with using
This commit is contained in:
parent
f388449c0a
commit
f1e672d375
7 changed files with 12 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue