Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_xmlwriter.cpp
diff options
context:
space:
mode:
authorDaniel Griscom2020-01-20 21:41:08 -0500
committerMartin Hořeňovský2020-02-16 15:12:07 +0100
commitab520f4e97ad5e9b01c0f08cda868d9690d35aff (patch)
treed215ef9234cee809d5f9ac7b23f0d1a5f70ba4f6 /src/catch2/catch_xmlwriter.cpp
parent32617f42d07c83e5f99dc831f567609ec54861ea (diff)
downloadcatch3-ab520f4e97ad5e9b01c0f08cda868d9690d35aff.tar.gz
Removed unneeded 'using uchar = unsigned char'
Diffstat (limited to 'src/catch2/catch_xmlwriter.cpp')
-rw-r--r--src/catch2/catch_xmlwriter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/catch2/catch_xmlwriter.cpp b/src/catch2/catch_xmlwriter.cpp
index a39d4a1b..4eed4ef7 100644
--- a/src/catch2/catch_xmlwriter.cpp
+++ b/src/catch2/catch_xmlwriter.cpp
@@ -12,8 +12,6 @@
#include <iomanip>
#include <type_traits>
-using uchar = unsigned char;
-
namespace Catch {
namespace {
@@ -87,7 +85,7 @@ namespace {
// (see: http://www.w3.org/TR/xml/#syntax)
for( std::size_t idx = 0; idx < m_str.size(); ++ idx ) {
- uchar c = m_str[idx];
+ unsigned char c = m_str[idx];
switch (c) {
case '<': os << "&lt;"; break;
case '&': os << "&amp;"; break;
@@ -147,7 +145,7 @@ namespace {
bool valid = true;
uint32_t value = headerValue(c);
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);
value = (value << 6) | (nc & 0x3F);
}