diff options
author | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-17 11:10:50 (GMT) |
---|---|---|
committer | Clemens Wasser <clemens.wasser@gmail.com> | 2023-06-22 16:11:45 (GMT) |
commit | 30c882827ec6f7b26fe07e5fba42f1a7400e9b36 (patch) | |
tree | e0093c98912337a2b0478b9b7867dba37db85655 /Source/cmUuid.cxx | |
parent | 17b16696d4c5cc26ed956848f7d5e9fe59a09c0a (diff) | |
download | CMake-30c882827ec6f7b26fe07e5fba42f1a7400e9b36.zip CMake-30c882827ec6f7b26fe07e5fba42f1a7400e9b36.tar.gz CMake-30c882827ec6f7b26fe07e5fba42f1a7400e9b36.tar.bz2 |
C{Make,Test}Lib: Precompile common expensive headers
Diffstat (limited to 'Source/cmUuid.cxx')
-rw-r--r-- | Source/cmUuid.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmUuid.cxx b/Source/cmUuid.cxx index 6688668..5f5d3e4 100644 --- a/Source/cmUuid.cxx +++ b/Source/cmUuid.cxx @@ -104,20 +104,20 @@ std::string cmUuid::BinaryToString(const unsigned char* input) const size_t bytes = kUuidGroups[i]; for (size_t j = 0; j < bytes; ++j) { - unsigned char byte = input[inputIndex++]; - output += this->ByteToHex(byte); + unsigned char inputByte = input[inputIndex++]; + output += this->ByteToHex(inputByte); } } return output; } -std::string cmUuid::ByteToHex(unsigned char byte) const +std::string cmUuid::ByteToHex(unsigned char inputByte) const { std::string result(" "); for (int i = 0; i < 2; ++i) { - unsigned char rest = byte % 16; - byte /= 16; + unsigned char rest = inputByte % 16; + inputByte /= 16; char c = (rest < 0xA) ? static_cast<char>('0' + rest) : static_cast<char>('a' + (rest - 0xA)); result.at(1 - i) = c; |