summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Griscom <dan.griscom@telosalliance.com>2020-01-20 21:41:08 -0500
committerMartin Hořeňovský <martin.horenovsky@gmail.com>2020-01-24 14:26:22 +0100
commit587a20b312a44fef5373b53b897a9bd5ebfa5c0b (patch)
tree341dfaf1dedffb5f55c872ca0587bde09cc96ea4
parentbff44f8b0116e0ba1fa24fb5249d43c2639fbb64 (diff)
downloadcatch2-587a20b312a44fef5373b53b897a9bd5ebfa5c0b.tar.gz
Removed unneeded 'using uchar = unsigned char'
-rw-r--r--include/internal/catch_xmlwriter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/internal/catch_xmlwriter.cpp b/include/internal/catch_xmlwriter.cpp
index b0d81ab7..30f3b0f1 100644
--- a/include/internal/catch_xmlwriter.cpp
+++ b/include/internal/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);
}