summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/xml.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-01-04 08:08:11 -0500
committerB Stack <bgstack15@gmail.com>2021-01-04 08:08:11 -0500
commitf9a264860c23b8381adbc0b9766e1b677a07da78 (patch)
tree494f9fc32eeee34c6c46611ae0137c25a79517a4 /zenXml/zenxml/xml.h
parentMerge branch '11.4' into 'master' (diff)
downloadFreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.tar.gz
FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.tar.bz2
FreeFileSync-f9a264860c23b8381adbc0b9766e1b677a07da78.zip
add upstream 11.5
Diffstat (limited to 'zenXml/zenxml/xml.h')
-rw-r--r--zenXml/zenxml/xml.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zenXml/zenxml/xml.h b/zenXml/zenxml/xml.h
index f7340b39..ffd00ea0 100644
--- a/zenXml/zenxml/xml.h
+++ b/zenXml/zenxml/xml.h
@@ -275,7 +275,7 @@ public:
{
if (refIndex_ < refList_.size())
{
- bool success = readStruc(*refList_[refIndex_], value);
+ const bool success = readStruc(*refList_[refIndex_], value);
if (!success)
log_.ref().notifyConversionError(getNameFormatted());
return success;
@@ -310,7 +310,7 @@ public:
{
if (refIndex_ < refList_.size())
{
- bool success = refList_[refIndex_]->getAttribute(name, value);
+ const bool success = refList_[refIndex_]->getAttribute(name, value);
if (!success)
log_.ref().notifyMissingAttribute(getNameFormatted(), utfTo<std::string>(name));
return success;
@@ -382,7 +382,7 @@ private:
static std::string getNameFormatted(const XmlElement& elem) //"<Root> <Level1> <Level2>"
{
- return (elem.parent() ? getNameFormatted(*elem.parent()) + ' ' : std::string()) + '<' + elem.getNameAs<std::string>() + '>';
+ return (elem.parent() ? getNameFormatted(*elem.parent()) + ' ' : std::string()) + '<' + elem.getName() + '>';
}
std::string getNameFormatted() const
bgstack15