summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/xml.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-09-03 20:50:36 +0000
committerB Stack <bgstack15@gmail.com>2019-09-03 20:50:36 +0000
commit89b5c8eb6012b7b4560958ad3c1aa5b187dafc94 (patch)
treeafc54ec004ab863262f5621fbf282c42fdff29cc /zenXml/zenxml/xml.h
parentMerge branch '10.14' into 'master' (diff)
parentadd upstream 10.15 (diff)
downloadFreeFileSync-89b5c8eb6012b7b4560958ad3c1aa5b187dafc94.tar.gz
FreeFileSync-89b5c8eb6012b7b4560958ad3c1aa5b187dafc94.tar.bz2
FreeFileSync-89b5c8eb6012b7b4560958ad3c1aa5b187dafc94.zip
Merge branch '10.15' into 'master'10.15
add upstream 10.15 See merge request opensource-tracking/FreeFileSync!12
Diffstat (limited to 'zenXml/zenxml/xml.h')
-rw-r--r--zenXml/zenxml/xml.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/zenXml/zenxml/xml.h b/zenXml/zenxml/xml.h
index 15d635bd..80b60730 100644
--- a/zenXml/zenxml/xml.h
+++ b/zenXml/zenxml/xml.h
@@ -368,8 +368,10 @@ public:
std::vector<String> getErrorsAs() const
{
std::vector<String> output;
- const auto& elements = log_.ref().elementList();
- std::transform(elements.begin(), elements.end(), std::back_inserter(output), [](const std::string& str) { return utfTo<String>(str); });
+
+ for (const std::string& str : log_.ref().elementList())
+ output.push_back(utfTo<String>(str));
+
return output;
}
bgstack15