mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-25 20:38:55 +02:00
modernize with clang-tidy
This commit is contained in:
parent
e0d25d02ab
commit
8b231c7cc6
54 changed files with 182 additions and 196 deletions
|
@ -28,7 +28,7 @@ using namespace std;
|
|||
static string hex2str(string input)
|
||||
{
|
||||
typedef unsigned char byte;
|
||||
unsigned long x = strtoul(input.c_str(), 0, 16);
|
||||
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