mirror of
https://github.com/qpdf/qpdf.git
synced 2024-06-03 19:00:51 +00:00
Tweak pull request contribution on fixing non-standard basic_string_view
This commit is contained in:
parent
07bc363224
commit
e9166457fa
|
@ -59,8 +59,8 @@ QPDF_Name::analyzeJSONEncoding(const std::string& name)
|
||||||
bool tail2 = false; // Potential overlong 3 octet utf-8.
|
bool tail2 = false; // Potential overlong 3 octet utf-8.
|
||||||
bool tail3 = false; // potential overlong 4 octet
|
bool tail3 = false; // potential overlong 4 octet
|
||||||
bool needs_escaping = false;
|
bool needs_escaping = false;
|
||||||
for (auto it = name.begin(); it != name.end(); ++it) {
|
for (auto const& it: name) {
|
||||||
unsigned char c = static_cast<unsigned char>(*it);
|
auto c = static_cast<unsigned char>(it);
|
||||||
if (tail) {
|
if (tail) {
|
||||||
if ((c & 0xc0) != 0x80) {
|
if ((c & 0xc0) != 0x80) {
|
||||||
return {false, false};
|
return {false, false};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user