mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-23 05:46:11 +01:00
Removed unneeded 'using uchar = unsigned char'
This commit is contained in:
parent
bff44f8b01
commit
587a20b312
@ -12,8 +12,6 @@
|
|||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
using uchar = unsigned char;
|
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -87,7 +85,7 @@ namespace {
|
|||||||
// (see: http://www.w3.org/TR/xml/#syntax)
|
// (see: http://www.w3.org/TR/xml/#syntax)
|
||||||
|
|
||||||
for( std::size_t idx = 0; idx < m_str.size(); ++ idx ) {
|
for( std::size_t idx = 0; idx < m_str.size(); ++ idx ) {
|
||||||
uchar c = m_str[idx];
|
unsigned char c = m_str[idx];
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case '<': os << "<"; break;
|
case '<': os << "<"; break;
|
||||||
case '&': os << "&"; break;
|
case '&': os << "&"; break;
|
||||||
@ -147,7 +145,7 @@ namespace {
|
|||||||
bool valid = true;
|
bool valid = true;
|
||||||
uint32_t value = headerValue(c);
|
uint32_t value = headerValue(c);
|
||||||
for (std::size_t n = 1; n < encBytes; ++n) {
|
for (std::size_t n = 1; n < encBytes; ++n) {
|
||||||
uchar nc = m_str[idx + n];
|
unsigned char nc = m_str[idx + n];
|
||||||
valid &= ((nc & 0xC0) == 0x80);
|
valid &= ((nc & 0xC0) == 0x80);
|
||||||
value = (value << 6) | (nc & 0x3F);
|
value = (value << 6) | (nc & 0x3F);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user