summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/parser.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-12-08 08:07:35 -0500
committerB. Stack <bgstack15@gmail.com>2024-12-08 08:07:35 -0500
commit3421217d9b795033f70098a6079f4bcbb6c6167d (patch)
tree0f90d5723fdf001843cdfb9dd640e13704b62d1d /zenXml/zenxml/parser.h
parentadd upstream 13.8 (diff)
downloadFreeFileSync-3421217d9b795033f70098a6079f4bcbb6c6167d.tar.gz
FreeFileSync-3421217d9b795033f70098a6079f4bcbb6c6167d.tar.bz2
FreeFileSync-3421217d9b795033f70098a6079f4bcbb6c6167d.zip
add upstream 13.9HEAD13.9master
Diffstat (limited to 'zenXml/zenxml/parser.h')
-rw-r--r--zenXml/zenxml/parser.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/zenXml/zenxml/parser.h b/zenXml/zenxml/parser.h
index d34b2fff..6c7959b4 100644
--- a/zenXml/zenxml/parser.h
+++ b/zenXml/zenxml/parser.h
@@ -110,7 +110,7 @@ std::string normalize(const std::string_view& str, Predicate pred) //pred: unary
inline
std::string normalizeName(const std::string& str)
{
- /*const*/ std::string nameFmt = normalize(str, [](char c) { return isWhiteSpace(c) || c == '=' || c == '/' || c == '\'' || c == '"'; });
+ /*const*/ std::string nameFmt = normalize(str, [](const char c) { return isWhiteSpace(c) || c == '=' || c == '/' || c == '\'' || c == '"'; });
assert(!nameFmt.empty());
return nameFmt;
}
@@ -118,13 +118,13 @@ std::string normalizeName(const std::string& str)
inline
std::string normalizeElementValue(const std::string& str)
{
- return normalize(str, [](char c) { return static_cast<unsigned char>(c) < 32; });
+ return normalize(str, [](const char c) { return static_cast<unsigned char>(c) < 32; });
}
inline
std::string normalizeAttribValue(const std::string& str)
{
- return normalize(str, [](char c) { return static_cast<unsigned char>(c) < 32 || c == '\'' || c == '"'; });
+ return normalize(str, [](const char c) { return static_cast<unsigned char>(c) < 32 || c == '\'' || c == '"'; });
}
@@ -343,7 +343,7 @@ public:
return it->second;
}
- const auto itNameEnd = std::find_if(pos_, stream_.end(), [](char c)
+ const auto itNameEnd = std::find_if(pos_, stream_.end(), [](const char c)
{
return c == '<' ||
c == '>' ||
@@ -367,7 +367,7 @@ public:
std::string extractElementValue()
{
- auto it = std::find_if(pos_, stream_.end(), [](char c)
+ auto it = std::find_if(pos_, stream_.end(), [](const char c)
{
return c == '<' ||
c == '>';
@@ -379,7 +379,7 @@ public:
std::string extractAttributeValue()
{
- auto it = std::find_if(pos_, stream_.end(), [](char c)
+ auto it = std::find_if(pos_, stream_.end(), [](const char c)
{
return c == '<' ||
c == '>' ||
bgstack15